Re: How to implement an Xcode-style hierarchical file browser
Re: How to implement an Xcode-style hierarchical file browser
- Subject: Re: How to implement an Xcode-style hierarchical file browser
- From: Stephane Sudre <email@hidden>
- Date: Tue, 26 Sep 2006 12:34:02 +0200
On 26 sept. 06, at 09:08, Andy Lee wrote:
On Sep 26, 2006, at 2:38 AM, Stephane Sudre wrote:
Why would it need specific tricks to have the same objects at
different location?
A NSOutlineView data source can be represented as you wish but the
usual solution is a tree. There's nothing preventing having the same
object in multiple leafs. That's what reference counting is for.
I assume this is related to this bit from the docs that Rick quoted?
Important: NSOutlineView requires that each item in the outline view
be unique.
I haven't used NSOutlineView much, but I suspect the reason for this
requirement is so the -rowForItem: method can return a reliable
answer.
Of course, if I'm answering the wrong question, then never mind...
Yes and no. Usually the tree (both branches and leaves) contains
objects which are not aware they are in a tree. Cf NSDragOutlineViews.
_______________________________________________
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