On Tue, 26 Apr 2011 21:23:10 -0700, Kyle Sluder <kyle.slu...@gmail.com> said: >On Tue, Apr 26, 2011 at 9:07 PM, Steve Christensen <puns...@mac.com> wrote: >> I believe it's only necessary if you want to do a straight "@synthesize >> foo;", which would expect the instance variable to have the same name as the >> property. > >And it's worth mentioning that you can always do @synthesize foo=_foo; >to map a property to an ivar with a different name.
And Apple now exemplifies this pattern, e.g. in the app template for Window-based Application: there's a "window" property accessing a "_window" ivar. I think they do this just so you can't accidentally say "window" unqualified. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com