• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to implement an Xcode-style hierarchical file browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to implement an Xcode-style hierarchical file browser
      • From: Stephane Sudre <email@hidden>
References: 
 >How to implement an Xcode-style hierarchical file browser (From: Rick Hoge <email@hidden>)
 >Re: How to implement an Xcode-style hierarchical file browser (From: Murat Konar <email@hidden>)
 >Re: How to implement an Xcode-style hierarchical file browser (From: Rick Hoge <email@hidden>)
 >Re: How to implement an Xcode-style hierarchical file browser (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: How to implement an Xcode-style hierarchical file browser
  • Next by Date: Re: Tracing Cocoa Functions
  • Previous by thread: Re: How to implement an Xcode-style hierarchical file browser
  • Next by thread: Re: How to implement an Xcode-style hierarchical file browser
  • Index(es):
    • Date
    • Thread