Re: warning: local declaration hides instance variable
Re: warning: local declaration hides instance variable
- Subject: Re: warning: local declaration hides instance variable
- From: glenn andreas <email@hidden>
- Date: Mon, 3 Sep 2007 21:01:24 -0500
On Sep 3, 2007, at 8:05 PM, Jeff Laing wrote:
And if you don't have Apple's guideline wired in, you can use the
prefix '_' and still make it clear what's instance data. You don't
have to write
I guess thats the point I was trying to make, somewhat obtusely.
Apple *do* have a naming convention thats being assumed by KVC -
use leading
'_' if you want to get *some* of your implementation for free.
They actually document the naming conventions: <http://
developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/
Articles/chapter_950_section_11.html#//apple_ref/doc/uid/TP30001163-
CH3-TPXREF108>
"The names of variables that hold instances usually also begin with
lowercase letters."
(they go on to explain that "Method names beginning with “_”, a
single underscore character, are reserved for use by Apple")
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden