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
/* | |
Enum with Fixed Underlying Type | |
New with Xcode 4.4 | |
Via WWDC2012 Session 405 - Modern Objective-C | |
Results in better code completion and stronger type checking. | |
Use -Wconversion compiler flag to check for enum type errors. | |
-Wswitch for checking if switch statement is fully handled for enum. | |
*/ |
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
/* | |
Source: WWDC2012 Modern Objective-C talk | |
How to get a constant literal container to work. | |
*/ | |
@implementation MyClass | |
static NSArray *thePlanets; | |
+ (void)initialize { |