This might sound dumb but why some functions/methods in Objective-C use parentheses rather than square brackets?
E.g. why it's not [someObject NSLog: @"Hello World!"];?
And when should I use parentheses but not square brackets? Thanks.
This might sound dumb but why some functions/methods in Objective-C use parentheses rather than square brackets?
E.g. why it's not [someObject NSLog: @"Hello World!"];?
And when should I use parentheses but not square brackets? Thanks.