• 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: Tree for NSOutlineView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree for NSOutlineView?


  • Subject: Re: Tree for NSOutlineView?
  • From: Simon Stapleton <email@hidden>
  • Date: Tue, 29 Oct 2002 09:29:51 +0100

From: "Keith Pritchard" <email@hidden>

I have a data set which lends itself totally to a tree structure.

I need to shuffle it around a fair deal to get it that way, but then it's
pretty perfectly represented by NSOutlineView.

Ok, a tree could be said to be an array of arrays, but that lacks all the
nice methods for counting/retrieving children etc which are needed.

Is there anything out there which I could use to store my data in a tree
suitable for giving to NSOutlineView when it asks? Anything from Omni or
some other folks?

NSTree is really so needed.... (or it is by me at least).


Well, you could quite easily wrap CFTree. See the CoreFoundation documentation.

Alternatively, drop me a mail and I can drop you an alpha of my bridged tree class in a few days - I'm having trouble getting it to bridge to unknown versions of CF at the moment, but otherwise it seems to work. Not sure how efficient it will be for OutlineView sourcing, but it should be more efficient than using arrays of arrays and similar.

Oh, and drop a feature request on bugreporter for Apple to bridge CFTree. If you don't ask officially, it won't get done ;-)

Simon

--
PGP Key Id : 0x50D0698D
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSString Parsing
  • Next by Date: Printable region and drawRect
  • Previous by thread: Re: Tree for NSOutlineView?
  • Next by thread: NSFormatter how to use ?
  • Index(es):
    • Date
    • Thread