• 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: KVO Oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO Oddity


  • Subject: Re: KVO Oddity
  • From: Allan Odgaard <email@hidden>
  • Date: Sat, 15 May 2004 01:13:07 +0200

On 15. May 2004, at 0:09, Christopher Pavicich wrote:

Just curious, why wouldn't you have them?

Because there are no added benefits (ignoring minimal speed differences), only extra code to maintain.

I was considering a system where instance variables prefixed with 'attr_' or similar would automatically have get and set methods added in +initialize, if such method was not already present -- but now that we have valueForKey[Path]: and setValue:forKey[Path]: it is sort of redundant, since the latter achieves the same, although with slightly more verbose syntax, but since I mostly use the attributes in binding related contexts, I rarely experience it in code.
_______________________________________________
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: 
 >KVO Oddity (From: Chris Pavicich <email@hidden>)
 >Re: KVO Oddity (From: Scott Anguish <email@hidden>)
 >Re: KVO Oddity (From: Joakim Danielson <email@hidden>)
 >Re: KVO Oddity (From: "Louis C. Sacha" <email@hidden>)
 >Re: KVO Oddity (From: Allan Odgaard <email@hidden>)
 >Re: KVO Oddity (From: "Louis C. Sacha" <email@hidden>)
 >Re: KVO Oddity (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: mouse click events
  • Next by Date: NSToolbarItem with Menu
  • Previous by thread: Re: KVO Oddity
  • Next by thread: c++ and xcode header files
  • Index(es):
    • Date
    • Thread