Closed brightredchilli closed 9 years ago
Okay, I see what @brightredchilli is doing here. However, I think this statement "Dot-notation should not be used to call methods. For Cocoa objects, use headers from the latest available SDK." should be broken up into two statements either with their own example.
Dot-notation should not be used to call methods. For example:
NSMutableArray *array = [NSMutableArray array];
Not:
NSMutableArray *array = NSMutableArray.array;
However, recent SDKs have converted some methods into properties. Since you should be using the latest available SDK, you should use the dot syntax for these newly declared properties. For example:
array.firstObject
array.count
Not:
[array firstObject]
[array count]
guilty as charged!
closed with 4b05050
Address #12