Bindings: NSTreeController sends redundant "selection" keypath KVO notifications
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