"Reloading" an NSBrowser bound to an NSTreeController
"Reloading" an NSBrowser bound to an NSTreeController
- Subject: "Reloading" an NSBrowser bound to an NSTreeController
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 11 Jan 2008 17:49:53 -0500
Given your funky syntax, it seems like you're not using KVC accessors,
so the tree controller isn't picking up KVO notifications when you
removeAllObjects. You can either use KVC compliant accessors and
mutators on the object to which @remoteTree belongs (or however Nu
works), or you can do all your manipulation through the
NSTreeController. Option 1 will probably entail writing the KVC
to-many relationship accessors so that you can use
mutableArrayValueForKey.
HTH,
--Kyle Sluder
_______________________________________________
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