Re: Programmatically traverse NSTreeController
Re: Programmatically traverse NSTreeController
- Subject: Re: Programmatically traverse NSTreeController
- From: Julien Bordet <email@hidden>
- Date: Tue, 6 Dec 2005 15:12:25 +0100
In fact I think I've found what I was looking for : my idea was to manage an
object Tree through NSTreeController, and be able to list all objects in a
NSComboBox.
So I created a entity, and two Controller related to the same entity : a
NSTreeController, bounded to a NSOutlineView, and a NSArrayController,
responsible for the NSComboBox management.
That currently seems to work. Do you see any future problem ?
Many thanks
Julien
2005/12/6, Scott Anguish <email@hidden>:
>
>
>
On Dec 6, 2005, at 4:47 AM, Julien Bordet wrote:
>
>
> Hi,
>
>
>
> How can I programmatically traverse NSTreeController ? When using
>
> bindings
>
> to link NSOutlineView and NSTreeController, Coredata knows how to
>
> do it from
>
> the opaque arrangedObject method.
>
>
>
> But I'd like to be able to traverse the tree from my code. Do you
>
> know how
>
> to do this ?
>
>
actually, CoreData probably does it from the data, rather than
>
from
>
the treecontroller (waiting for Chris or Bill to correct me)
>
>
arranged object should definitely, absolutely, positively not be
>
used.. it's private, and subject to change, thus breaking your app,
>
angering your users, and costing you millions in lost sales.
>
>
(I wanted to include that in the reference for the method, but it
>
was deemed a bit too strong)
>
>
>
>
_______________________________________________
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