• 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: Anyone got a cleverer idea for a tree view protocol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anyone got a cleverer idea for a tree view protocol?


  • Subject: Re: Anyone got a cleverer idea for a tree view protocol?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 27 Aug 2008 16:54:46 +1000


On 27 Aug 2008, at 4:36 pm, Markus Spoettl wrote:

On Aug 26, 2008, at 8:58 PM, Graham Cox wrote:
0,3,2,1

would mean from the root, take the zeroth subitem, then the third, then the 2nd, then the 1st to arrive at the node at that point. An empty list (0 length) addresses the root node itself.

I'm not commenting on your idea, it's just that this very much sounds like NSIndexPath and since you didn't mention the name, I thought you may not know about the existence of this class (according to docs this is 10.4+). It's used to set selection index paths in NSTreeControllers.


Indeed, I didn't know about it. Looks perfect! Thanks :)

It also somewhat vindicates my design since it's the same basic concept - the details differ but it looks the like a reasonable approach.

Graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Anyone got a cleverer idea for a tree view protocol? (From: Graham Cox <email@hidden>)
 >Re: Anyone got a cleverer idea for a tree view protocol? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Anyone got a cleverer idea for a tree view protocol?
  • Next by Date: Re: Removing Applications from the Dock Programmatically
  • Previous by thread: Re: Anyone got a cleverer idea for a tree view protocol?
  • Next by thread: how to release CFData
  • Index(es):
    • Date
    • Thread