Re: Name instance variables, methods and parameters.
Re: Name instance variables, methods and parameters.
- Subject: Re: Name instance variables, methods and parameters.
- From: Allan Odgaard <email@hidden>
- Date: Wed, 28 Jan 2004 14:49:43 +0100
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.