3 questions about extern used in an Objective-C project
1) you’re specifying its linkage. extern linkage allows you or any client to reference the symbol. regarding global variables: if the variable is mutable and/or needs proper construction, then you should consider methods or functions for this object. the notable exception to this is NSString constants: // MONClass.h extern NSString* const MONClassDidCompleteRenderNotification; // MONClass.m NSString* … Read more