I've watched the Stanford iTunes U course on iOS (cs193p) where the teacher explicitly says to always specify ivar name when using @synthesize
to avoid problems, such as
@synthesize name = _name;
But while browsing through the Cocoa documentation on declared properties I haven't really seen this, or in any other sample code.
This brings me to a question, why is this needed? Isn't it good enough to just use the @synthesize
with a property name? Are there any specific problems that this can help avoid?