Re: How to observe NSTreeController in a custom view?
Re: How to observe NSTreeController in a custom view?
- Subject: Re: How to observe NSTreeController in a custom view?
- From: "Oleg Krupnov" <email@hidden>
- Date: Fri, 5 Sep 2008 12:01:51 +0300
> In general, it's not necessary for the observer to keep a copy of the old array. However, there's a longstanding bug in NSArrayController that means it doesn't pass the correct change information, so the sample code you're looking at might be working around this bug. It's only lame because there's a lame bug.
Sounds like a good news, assuming that NSTreeController does not have
this bug, right?
It is still unclear though how do I observe NSTreeContoller, or
NSArrayContoller if it didn't have its bug. Can you give me an little
example?
I made an experiment myself and found that when I add a node to the
tree, I receive the NSKeyValueChangeSetting change, and no old/new
values (NSNulls) in the change dictionary, although I specified it in
the options of addObserver: message. I wonder if this is by design and
what I am supposed to do? How do I find out the change?
_______________________________________________
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