Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name instance variables, methods and parameters.



On 28. Jan 2004, at 6:55, Daryn wrote:

Apple warns not to use underscores because they reserve them for use
within the frameworks. Refusing to obey this requirement will cause
trouble if/when one of your framework subclasses stomps over the
framework's private method or ivar. [...]

Which I think conflicts with their KV coding scheme, because [obj valueForKey:@"dummy"] will prefer an ivar named '_dummy' over one named 'dummy'. So by not using underscore for my ivars I risk getting the value of a private framework ivar.
--
http://www.top-house.dk/~aae0030/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Name instance variables, methods and parameters. (From: "Czarny, Eric" <email@hidden>)
 >Re: Name instance variables, methods and parameters. (From: Daryn <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.