• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Name instance variables, methods and parameters.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Name instance variables, methods and parameters. (From: "Czarny, Eric" <email@hidden>)
 >Re: Name instance variables, methods and parameters. (From: Daryn <email@hidden>)

  • Prev by Date: Re: sscanf problem
  • Next by Date: Re: sscanf problem
  • Previous by thread: Re: Name instance variables, methods and parameters.
  • Next by thread: Re: Name instance variables, methods and parameters.
  • Index(es):
    • Date
    • Thread