Objective-C static, extern, public variables
I want to have a variable that I can access anywhere by importing a header file but I also want it to be static in the sense that there is only one of them created. In my .m file, I specify static BOOL LogStuff = NO; and in the initialize method I set the logging value: + (void)initialize { LogStuff = ... //whatever } However I want to be able to access my variable anywhere by importing the .h file so I want to do something like this: static extern BOOL LogStuff; but I'm not allowed to do that. Is it possible to do the thing I'm trying to do? Thanks Adam Rosenfield static in Objective-C means