i’m new to objc and coding for mac/iphone in general, so please forgive, yet entertain, a totally noob question…
i noticed in the mapkit video and source files, that you follow the pattern of:
declaring instance variables in the interface with an underscore, e.g.:
then, you assign the property without the underscore, e.g.:
@property (nonatomic, retain) IBOutlet MKMapView *mapview;
and then synthesize with an assignment, e.g.:
@synthesize mapView = _mapView;
later in the code, you refer/use/test both flavors of the _ and non _ variables.
i can not find any relevant info or clues to why you might be doing this and am left wondering. what advantages or reasons are there to doing it in this way… or am i missing something entirely due to being so new to this? unfortunately, for as helpful as they were, your objc vids didn’t cover anything in this area.
keep up the great work, and thanks!