• 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: 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

  • Follow-Ups:
    • Re: Proper KVO with NSTreeController + NSOutlineView
      • From: Joe Wollard <email@hidden>
References: 
 >Proper KVO with NSTreeController + NSOutlineView (From: "Joseph M. Wollard" <email@hidden>)

  • Prev by Date: Re: Proper KVO with NSTreeController + NSOutlineView
  • Next by Date: Re: Proper KVO with NSTreeController + NSOutlineView
  • Previous by thread: Re: Proper KVO with NSTreeController + NSOutlineView
  • Next by thread: Re: Proper KVO with NSTreeController + NSOutlineView
  • Index(es):
    • Date
    • Thread