Re: NSArrayController bound to @unionOfArrays not updating
Re: NSArrayController bound to @unionOfArrays not updating
- Subject: Re: NSArrayController bound to @unionOfArrays not updating
- From: Quincey Morris <email@hidden>
- Date: Wed, 16 Apr 2008 23:34:41 -0700
On Apr 16, 2008, at 22:54, William Towe wrote:
To achieve this I bound the table view's contentArray binding to
controller key "selection" and model key path:
"@unionOfArrays.allDescendantsNodes". The allDescendantNodes method
in my
file node class returns an array with all its descendants in it as
well as
itself.
Simply returning a value from the allDescendantNodes method does not
make your object KVO compliant for the "allDescendantNodes" property,
so the question is: what (if anything) are you doing to make it KVO
compliant? Specifically, when you insert child nodes, do you call
[self willChangeValueForKey:@"allDescendantNodes"] and [self
didChangeValueForKey:@"allDescendantNodes"], or something with the
same effect?
_______________________________________________
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