Difficulty binding an NSArrayController to an NSTreeController
Difficulty binding an NSArrayController to an NSTreeController
- Subject: Difficulty binding an NSArrayController to an NSTreeController
- From: Rick Mann <email@hidden>
- Date: Sat, 2 Jan 2010 03:09:56 -0800
I've got a Core Data model with a Group entity and Part entity. Each Part belongs to a Group, and Groups can belong to Groups. The NSTreeController and NSOutlineView work fine to display the Group hierarchy, but I can't seem to get the NSArrayController to bind to the tree controller's selection (there's an NSCollectionView backed by the NSArrayController).
If I don't try to bind the NSArrayController, but just have it get all Parts in the context, it works fine (that is, the NSCollectionView shows entries for the parts in the MOC).
Does anyone know how to properly bind the NSArrayController's content to the selected Groups' parts (the relationship on Group is called "parts", and returns an NSSet*).
Thanks!
--
Rick
_______________________________________________
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