• 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: warning: local declaration hides instance variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >RE: warning: local declaration hides instance variable (From: Jeff Laing <email@hidden>)

  • Prev by Date: RE: warning: local declaration hides instance variable
  • Next by Date: Re: Getting rid of Obj-C "may not respond to" warning
  • Previous by thread: RE: warning: local declaration hides instance variable
  • Next by thread: Getting rid of Obj-C "may not respond to" warning
  • Index(es):
    • Date
    • Thread