• 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
NSTreeController, Core Data and Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController, Core Data and Relationships


  • Subject: NSTreeController, Core Data and Relationships
  • From: mark hill <email@hidden>
  • Date: Mon, 26 Feb 2007 12:47:50 -0800 (PST)

I have a Core Data model that describes this kind of
hierarchy:

Root ---->
   Group --->
        Leaf --->

So that:
1. Root has-many groups
2. Group has_many leaves and has_many siblings (nested
groups), but only 1 root.
3. Leaf belongs_to 1 group

I have declared only a single @"name" attribute so
far, just to test.

My question is how one might use NSTreeController to
manage this set of relationships. I've been surfing
and reading mixed reports on NSTreeController, but it
seems the ideal candidate, or at least a subclass
does.

What would be a viable alternative?
How would I structure and then iterate the following
for the @"name" attribute, for instance?

 Root1
   Group1
      Group1.1
         Leaf
         Leaf
      Group1.2
          Group1.2.1
              Leaf
   Group2
      Group2.1
         Leaf

Root2
    Group blah blah



Many thanks,



____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: chaning bundle extenstions
  • Next by Date: Standard Defaults Binding read only?
  • Previous by thread: chaning bundle extenstions
  • Next by thread: Standard Defaults Binding read only?
  • Index(es):
    • Date
    • Thread