OutlineView+TreeController with fixed ordering?
OutlineView+TreeController with fixed ordering?
- Subject: OutlineView+TreeController with fixed ordering?
- From: Thomas Lachand-Robert <email@hidden>
- Date: Sat, 7 May 2005 16:14:49 +0200
Hi all,
I'm currently trying to get used to the new NSTreeController +
NSOutlineView pair. It does a lot of things out the box, but there
are some behavior I have some difficulties to implement:
- the outline view has only one column, whose header is not shown.
The data should be presented in a fixed order, depending on an
integer keyed "index" in the model. Currently I get that by
overriding -sortDescriptors in my subclass of NSTreeController. This
works when the data is first displayed, but not afterwards, when the
data changes. How may I ensure the data are always ordered as
required, even as they change?
- since the outline view is connected to a tree controller, it
doesn't use a data source. What is the best way to implement copy/
paste and drag'n drop then? Is there some examples available?
- the data may have different forms, like strings, images, etc.
(Which form is given by a particular key in the model). But outline
views use the same cell for all rows, so I can't switch from
NSTextFieldCell to NSImageCell. What is the best way to display such
different kind of data in the same outline view?
Thanks for any help,
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet à la chose. >> Molière, Tartuffe.
_______________________________________________
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