December 2012
Beginner
552 pages
12h 58m
English
The current trend in coding conventions (which Xcode 4 has adopted) is to use an underscore (_) as the leading character for an instance variable name. So any references you see in the template code generated by Xcode to variables starting with a _ are referencing the instance variables directly by name.
When you see an @synthesize directive that looks like this
@synthesize window=_window;
it says to synthesize the getter and setter for the property named window and to associate that property with an instance variable called _window (which does not have to be explicitly declared). This helps to distinguish the use of the instance variable from the property and to encourage you ...
Read now
Unlock full access