• 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: wasting space?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wasting space?


  • Subject: Re: wasting space?
  • From: Rob Keniger <email@hidden>
  • Date: Tue, 7 Oct 2008 13:07:20 +1000


On 07/10/2008, at 7:26 AM, Erik Buck wrote:

You really don't need to override - observeValueForKeyPath:ofObject:change:context:. Or at least I haven't needed to override it because one of the existing NSController subclasses usually meets my needs.


If you are implementing manual bindings then you really have to implement this method. For example, how would you tell a custom view to call -setNeedsDisplayInRect: when a value changes unless you are getting notifications of observed properties through - observeValueForKeyPath:ofObject:change:context:?

In my opinion the use of this method is absolutely essential in any reasonably complex use of bindings/KVO.

--
Rob Keniger



_______________________________________________

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


References: 
 >Re: wasting space? (From: Erik Buck <email@hidden>)

  • Prev by Date: Re: NSWindowController retain counts, chapter 2
  • Next by Date: Re: CDMA Programming
  • Previous by thread: Re: wasting space?
  • Next by thread: Binding to @count
  • Index(es):
    • Date
    • Thread