Re: Proper KVO with NSTreeController + NSOutlineView
Re: Proper KVO with NSTreeController + NSOutlineView
- Subject: Re: Proper KVO with NSTreeController + NSOutlineView
- From: Dave Keck <email@hidden>
- Date: Fri, 28 Sep 2012 02:51:09 -1000
> I'd like to observe a notification when a user edits (renames) an item in the outline view that tells me the old and new values. I'm getting notifications, but the old and new values are always null. For what it's worth, I'm currently observing the "content.name" key path of the NSTreeController instance - not sure if that makes a difference.
Sounds suspiciously similar to the NSArrayController bug where it
doesn't honor the NSKeyValueObservingOption{Old|New} KVO options.
There are quite a few references to this around the web, e.g.:
http://www.cocoabuilder.com/archive/cocoa/215277-nsarraycontroller-selectedindexes.html
_______________________________________________
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