Re: Is there a warning for this?
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