Re: A Data Object in Cocoa
Re: A Data Object in Cocoa
- Subject: Re: A Data Object in Cocoa
- From: Alastair Houghton <email@hidden>
- Date: Sat, 10 Jan 2009 17:08:55 +0000
On 10 Jan 2009, at 16:48, Michael Ash wrote:
As for underscore being reserved, I have never been able to figure out
any consequence of a conflict with an Apple ivar name. It may cause
your source to fail to compile, but it won't cause any *binary*
compatibility problems, which is the real menace.
I *think* the problem here is introspection... if you subclass an
Apple provided class and add an instance variable with the same name
as one of theirs, it's possible that any of the dynamic mechanisms the
frameworks (or, for that matter, your own code) use to get the value
of an object property might use the wrong variable, with unexpected
results.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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