Stuck on NSTreeController bindings
Stuck on NSTreeController bindings
- Subject: Stuck on NSTreeController bindings
- From: Jenny M <email@hidden>
- Date: Wed, 17 Feb 2010 19:22:53 -0800 (PST)
Hi all,
I have a collection of entities I'd like to display in an
NSOutlineView with an NSTreeController. My issue is, I don't know how
to set the bindings. All examples I've seen are where the Tree
Controller contains ALL entities of a type. I need just a set of them,
but nothing I've tried to set in my bindings comes out in the outline
view. It doesn't result in an error, it just doesn't show anything.
My objects are chained like:
Alpha (multiple) -> Beta (one) -> Delta (multiple) (delta has
references to itself via parent and children relationships)
I can select the Alpha and see all the beta's Deltas in a plain Array
Controller and NSTableView, so those bindings are fine, but I cannot
see anything in the NSTreeController connected to NSOutlineView.
The managed object context is set fine. The other NSTreeController
bindings are set up as:
- Entity: Delta, Prepares Content
- Fetch predicate: "parent == nil"
- Children: "children"
I've tried to set up the "Content set" to a variety of settings and
none of them work. I'm setting up the Outline View bindings as
expected to the Tree Controller's values, just like the Table View's
bindings and like I've seen in tutorials but maybe I'm off there too.
Any suggestions or better tutorials??
Thanks,
Jenny
_______________________________________________
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