I\'m new to Objective-C, but I am curious about something that I haven\'t really seen addressed anywhere else.
Could anyone tell me what is the difference between a
The latter is not defining an instance variable. Rather, it is defining a global variable in the .m file. Such a variable is not unique to or part of any object instance.
Such globals have their uses (roughly equivalent C++ static members; e.g. storing a singleton instance), but normally you would define them at the top of the file before the @implementation directive.