Re: Retain/Release and Properties clarification
Re: Retain/Release and Properties clarification
- Subject: Re: Retain/Release and Properties clarification
- From: Sean McBride <email@hidden>
- Date: Fri, 07 Oct 2011 12:40:41 -0400
- Organization: Rogue Research Inc.
On Mon, 3 Oct 2011 13:23:25 -0500, Charles Srstka said:
>1. Apple reserves the underscore prefix for their own use, so you could,
>at least theoretically, clash with a superclass ivar this way, and
In addition to what Kyle replied, I'd just like to point out that prefixing your *methods* with an underscore is a very bad idea, since Apple does reserve such names and a conflict will bite you at runtime possibly affecting the binary compatibility of your app.
IMHO, prefixing your ivars with underscore is a good idea because it's typical convention. A conflict has never happened to me, and would mostly be a compile-time problem. But your point about KVO is a good one! Has anyone been bit by it?
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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