• 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: Proper KVO with NSTreeController + NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Proper KVO with NSTreeController + NSOutlineView (From: "Joseph M. Wollard" <email@hidden>)
 >Re: Proper KVO with NSTreeController + NSOutlineView (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: Proper KVO with NSTreeController + NSOutlineView
  • Next by Date: Shared NSNumberFormatters
  • Previous by thread: Re: Proper KVO with NSTreeController + NSOutlineView
  • Next by thread: Registering iOS developer program
  • Index(es):
    • Date
    • Thread