NSTreeController & NSOutlineView
NSTreeController & NSOutlineView
- Subject: NSTreeController & NSOutlineView
- From: Thaddeus Cooper <email@hidden>
- Date: Thu, 23 Jun 2005 19:19:30 -0700
Like many other people I'm having some trouble with NSTreeController
and NSOutlineView. I have an array of data that is modeled like this:
Roll
- number
- shots --->> Shots
Shots
- scene
- take
- etc.
In the outline view I'd like it to look like this:
> 1
> 2
> 3
When you click on the disclosure triangle I'd like to see the shot list
underneath it.
I have an array controller that is being used for the TableView and the
data entry part of the interface. I added an NSOutlineView, and
instantiated an NSTreeController. The NSTreeController is connected to
the file's MOC, it is set to entity, and the Entity Name is set to
Roll. I also checked Automatically prepares content since that is what
I noticed in the ArrayController attributes. Then I'm confused. I've
tried hooking up the data source in the attributes pane to the
NSTreeController, hooking up to the contentSet, and contentArray.
I think this is a 3 step process: 1. Hook up to the existing data; 2
Hook up to the NSOutline view; and 3. Hook up to the actual data to be
displayed in the column of the outline view, but I'm now totally
confoozled as to what needs to get hooked up to where. Can anybody give
me the magic incantations to correctly hook this together? :-)
Thanks.
--Thaddeus O. Cooper
(email@hidden)
PS I'm pretty sure this is simple, but I'm lost...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden