Re: @property problem
Re: @property problem
- Subject: Re: @property problem
- From: "Sean McBride" <email@hidden>
- Date: Tue, 12 Feb 2008 10:58:10 -0500
- Organization: Rogue Research
On 2/11/08 2:11 PM, Jens Alfke said:
>PS: To forstall an FAQ: Yes, it is kosher to use "_" as your ivar
>prefix, even though the Foundation and AppKit classes do the same.
>Name collisions are not a problem.
Could you elaborate? If I subclass NSView and add an ivar named
"_sisterView" then in some future SDK NSView.h also gets a _sisterView
ivar, wouldn't there be a compiler error? If only Apple uses the
underscore prefix and I don't, then there will be no conflicts.
Pity private ivars have to be in public headers...
--
____________________________________________________________
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