• 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: 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
  • Follow-Ups:
    • Re: How to implement an Xcode-style hierarchical file browser
      • From: Andy Lee <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>)
 >Re: How to implement an Xcode-style hierarchical file browser (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Connect to two network interfaces simultaneously?
  • Next by Date: Link (dyld) error, image not found
  • 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