I am a bit confused when working with objective-c. This part in particular confuses me a lot.
What is the purpose and/ or difference between writing code like this ...
object = [object method]; and
[object method]; Learning objective-c up until now, I always assumed that I could do something like this..
say I had already created this..
NSString *object = [[NSString alloc]initWithFormat:@"%@"]; then I could do what I want with that like so..
[object applyAnyMethodHere]; but now I'm seeing things like this ..
object = [object applyAnyMethodHere]; What is the difference between these two?