Re: Proper KVO with NSTreeController + NSOutlineView
Re: Proper KVO with NSTreeController + NSOutlineView
- Subject: Re: Proper KVO with NSTreeController + NSOutlineView
- From: Joe Wollard <email@hidden>
- Date: Fri, 28 Sep 2012 08:57:26 -0400
On Sep 28, 2012, at 8:51 AM, Dave Keck <email@hidden> wrote:
>> 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
Hmmm, the example output on that page looks all too familiar. I'll try Negm-Awad's binding info example as soon as I get a chance. Thanks for the link.
_______________________________________________
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