• 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 Data Structure in objc-C?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree Data Structure in objc-C?


  • Subject: Re: Tree Data Structure in objc-C?
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 29 Nov 2005 00:26:47 -0800


On Nov 27, 2005, at 9:12 PM, Scott Stevenson wrote:


On Nov 27, 2005, at 7:57 PM, David Chan wrote:

I was wondering what is the best approach to the following scenario:
I have a library application where I intend to store my books under some
categories. Now I have a NSOutlineView to do that interface wise. But how
[...]
Is there something in obj-C that I could use here or do I need to create my
own data structure to support this scenario?

Use Core Data and NSTreeController. This is what they're designed for.

Create an entity with a relationship to itself to create a recursive tree structure.

You can also use NSTreeController without CoreData.

-jcr

John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
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


References: 
 >Tree Data Structure in objc-C? (From: David Chan <email@hidden>)
 >Re: Tree Data Structure in objc-C? (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: webviw in a tab
  • Next by Date: Re: [NSApp mainMenu] returns nil under 10.4.3
  • Previous by thread: Re: Tree Data Structure in objc-C?
  • Next by thread: Re: Tree Data Structure in objc-C?
  • Index(es):
    • Date
    • Thread