• 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: Is there a warning for this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a warning for this?


  • Subject: Re: Is there a warning for this?
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 29 Dec 2009 00:36:04 -0500

Kyle Sluder (email@hidden) on 2009-12-24 9:20 AM said:

>Otherwise, give your ivars a prefix (underscore is
>verboten according to Apple, since they use it in the frameworks).

This is a common misconception.  The underscore is reserved by Apple for
method names, not ivars.  That's how they can safely add new methods to
public classes without conflicting with our subclasses.

I'd suggest you _do_ use underscore as your ivar prefix.

See also:
<http://gemma.apple.com/mac/library/documentation/Cocoa/Conceptual/
CodingGuidelines/Articles/NamingIvarsAndTypes.html>

<http://lists.apple.com/archives/Cocoa-dev/2009/Jan/msg00608.html>

Sean

--
"Terrorism is the war of the poor, and war is terrorism of the rich" -
Sir Peter Ustinov

_______________________________________________

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: Is there a warning for this?
      • From: Izidor Jerebic <email@hidden>
References: 
 >Is there a warning for this? (From: Brian Bruinewoud <email@hidden>)
 >Re: Is there a warning for this? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: To-Many/To-Many Master/Detail Core Data / Bindings Question
  • Next by Date: Re: Window Controllers
  • Previous by thread: Re: Is there a warning for this?
  • Next by thread: Re: Is there a warning for this?
  • Index(es):
    • Date
    • Thread