Kyle Sluder (kyle.slu...@gmail.com) 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to