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: Andy Lee <email@hidden>
- Date: Tue, 26 Sep 2006 03:08:55 -0400
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...
--Andy
_______________________________________________
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