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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to