• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handling bindings of an NSControl which forward everything to an NSCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Handling bindings of an NSControl which forward everything to an NSCell? (From: aaron smith <email@hidden>)
 >Re: Handling bindings of an NSControl which forward everything to an NSCell? (From: Seth Willits <email@hidden>)
 >Re: Handling bindings of an NSControl which forward everything to an NSCell? (From: aaron smith <email@hidden>)
 >Re: Handling bindings of an NSControl which forward everything to an NSCell? (From: Joanna Carter <email@hidden>)
 >Re: Handling bindings of an NSControl which forward everything to an NSCell? (From: Joanna Carter <email@hidden>)
 >Re: Handling bindings of an NSControl which forward everything to an NSCell? (From: Corbin Dunn <email@hidden>)
 >Re: Handling bindings of an NSControl which forward everything to an NSCell? (From: aaron smith <email@hidden>)

  • Prev by Date: Re: Handling bindings of an NSControl which forward everything to an NSCell?
  • Next by Date: [iPhone] Frustrated by a simple task
  • Previous by thread: Re: Handling bindings of an NSControl which forward everything to an NSCell?
  • Next by thread: Re: Handling bindings of an NSControl which forward everything to an NSCell?
  • Index(es):
    • Date
    • Thread