Re: Objective-C Instance Variable Names
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