Re: wasting space?
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