This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface Person | |
| // Derived from JSON | |
| @property (readonly) NSString *personID; | |
| @property (readonly) NSString *name; | |
| … | |
| @end | |
| //////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface MyClass : NSObject | |
| @end | |
| @implementation MyClass | |
| + (void)myMethod | |
| { | |
| NSArray *x = [[self alloc] init]; // This _doesn't_ throw a warning, despite +alloc and -init both being declared as instancetype |
OlderNewer