• 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
Bindings: NSTreeController sends redundant "selection" keypath KVO notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings: NSTreeController sends redundant "selection" keypath KVO notifications


  • Subject: Bindings: NSTreeController sends redundant "selection" keypath KVO notifications
  • From: Milen Dzhumerov <email@hidden>
  • Date: Fri, 20 Jun 2008 13:00:33 +0100

Hi all,

I'm building a 3-pane interface and I have a NSTreeController managing the sidebar. My actual content displayed in the main view is bound to the "selection" of the tree controller. When I insert a new object into the tree controller (I've disabled selection of inserted objects), I can see the new object added and the controller also preserves the selection visually. But it actually sends a KVO that selection changed - but it has not (even logging the selection object returns the same _NSControllerObjectProxy instance). The problem is that when selection changes, my main view interpolates / animates it's new state - so it fades-in and fades-out without changing its appearance. Is there a way to tell the controller not to send KVO notifications when the selection has not actually changed? Otherwise I would have to keep a flag in the main view whether any changes are real or just redundant.

Thanks,
M
_______________________________________________

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: Bindings: NSTreeController sends redundant "selection" keypath KVO notifications
      • From: "Hamish Allan" <email@hidden>
  • Prev by Date: Re: PDFKit guidance
  • Next by Date: Re: PDFKit guidance
  • Previous by thread: [Text rendering] Is there a known issue in Mac OS X 10.4.11?
  • Next by thread: Re: Bindings: NSTreeController sends redundant "selection" keypath KVO notifications
  • Index(es):
    • Date
    • Thread