Re: Handling bindings of an NSControl which forward everything to an NSCell?
Re: Handling bindings of an NSControl which forward everything to an NSCell?
- Subject: Re: Handling bindings of an NSControl which forward everything to an NSCell?
- From: Jens Alfke <email@hidden>
- Date: Wed, 12 May 2010 15:14:49 -0700
On May 12, 2010, at 2:50 PM, aaron smith wrote:
To me the
ivars in a class are already private (unless they're exposed through a
@property). So putting _ivar is like declaring private twice.
A naming convention for instance variables isn't to indicate that
they're private, it's to indicate that they're instance variables (and
have very different scope than local variables or method parameters.)
It can be confusing to try to understand a block of code and not know
whether 'foo' has method or object scope, without searching all the
way back to the top of the method for a declaration of 'foo'.
Most Java (and C++) code I've seen uses some sort of naming convention
for instance variables too.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden