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

Re: NSTree ??


  • Subject: Re: NSTree ??
  • From: email@hidden
  • Date: Fri, 21 Jun 2002 11:44:35 -0500

Yes, NSTree is in effect nested NSArray's .. but with nice methods to see if there are any children, how many children,
etc. etc. and to walk the structure..

NSOutline is in effect a UI to see a tree structure so I would think (IMHO) a NSTree would be a more logical
and direct way of representing the "tree" in question..

I didn't say that there weren't other methods (of course there are since there is no NSTree yet and lots of people
use NSOutline.. :-) just that as a data structure a tree is useful (esp. balanced trees, but thats a different thing)
and since CF has it, was wondering how/when/why doesn't NS have a similar data structure..

-SJM

On Friday, June 21, 2002, at 11:35 AM, Nathan Day wrote:

What do you want to use the tree for, often trees are used for mappings in which case you can use an NSDictionary, or else there used for un-order collections where stuff can be quickly found in which case use an NSSet. I don't see how a tree would be that helpful for a Outline view, isn't that just nested arrays, in which case use NSArray.

On Friday, June 21, 2002, at 11:45 PM, email@hidden wrote:

Actually, this is a more general question..

in looking at various pieces of doc, I note that there is a WHOLE slew of "Core Foundation"
hmmm.. routines.. available..

For example, CFTree, which handles a tree like structure nicely (wouldn't that be handy for the
Outline view?!?!) However, it looks like those are pure C or C++ function calls..

Anyway, I don't see a corresponding NSTree object thing at all..

So what ARE the CF routines .. ?? Are they all going to be converted into some NS version
(for those that are not??)

How hard/easy is it to use CF routines within a "pure" Obj-C Cocoa app??
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: NSTree ?? (From: Nathan Day <email@hidden>)

  • Prev by Date: Re: NSTree ??
  • Next by Date: Re: Adding data to a TableView
  • Previous by thread: Re: NSTree ??
  • Next by thread: Re: NSTree ??
  • Index(es):
    • Date
    • Thread