Re: manually populating an NSTreeController
Re: manually populating an NSTreeController
- Subject: Re: manually populating an NSTreeController
- From: Ondra Cada <email@hidden>
- Date: Wed, 15 Mar 2006 12:51:31 +0100
Olivier,
On 15.3.2006, at 9:06, Olivier Destrebecq wrote:
I want to use an NSTreeController to populate a NSBrowser and later
on an NSOutlineView wihtout core data. Is there any example on the
web of doing such a thing.
Probably there is, but no need: the basics somewhat surprisingly for
NSTreeController Just Work as documented (that is, until you want to
sort columns, drag&drop lines, or nearly anything a bit more complex;
but even this happens to be far easier with a data model of your own
than with CoreData). Let the thing know your relationship name, and
that's that.
Just don't forget--if you are ever changing the contents through
setContent:--first to call it with nil (otherwise the thing would
crash).
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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