• 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: Objective-C Instance Variable Names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C Instance Variable Names


  • Subject: Re: Objective-C Instance Variable Names
  • From: Todd Blanchard <email@hidden>
  • Date: Sun, 6 Apr 2008 23:37:54 -0700

Too late, I've been doing that since 1990 in C++.

Seriously, I've yet to run into a problem with it and I have been doing it forever. Just don't be overly general with your variable names. Like I probably wouldn't use _window in a custom view subclass or anything.

-Todd Blanchard

On Apr 6, 2008, at 6:47 PM, John C. Randolph wrote:


On Apr 3, 2008, at 9:45 AM, Jens Alfke wrote:

On 3 Apr '08, at 9:29 AM, Richard Somers wrote:

There is a common practice of prefixing instance variable names with "_", a single underscore character.

And it's a very good idea to do so, IMHO.

Jens,

That's an Apple internal coding convention, and it's not recommended for anyone else.

-jcr




"This is not a book to be tossed aside lightly. Rather, it should be hurled with great force." -Dorothy Parker


_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Objective-C Instance Variable Names
      • From: "Kyle Sluder" <email@hidden>
References: 
 >Objective-C Instance Variable Names (From: Richard Somers <email@hidden>)
 >Re: Objective-C Instance Variable Names (From: Jens Alfke <email@hidden>)
 >Re: Objective-C Instance Variable Names (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: ImageIO key properties
  • Next by Date: Re: Using existing SQLite database with core data?
  • Previous by thread: Re: Objective-C Instance Variable Names
  • Next by thread: Re: Objective-C Instance Variable Names
  • Index(es):
    • Date
    • Thread