When XCode creates synthesize statements in Apple's templates, you would see something like:
@synthesize ivar=_ivar;
So I get the single underscore, and how you name ivars differently than properties to make sure you don't accidentally access them, etc...
I just started a core data project, and in the template-created statements, I have:
@synthesize managedObjectContext=__managedObjectContext;
@synthesize managedObjectModel=__managedObjectModel;
@synthesize persistentStoreCoordinator=__persistentStoreCoordinator;
Why the double underscore for core data-related ivar names? Is this just an Apple syntax? Not sure if there is more to it than that and if it is something I need to be aware of - Google was not very helpful.
Thanks!