• 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: Core Data complex structure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data complex structure


  • Subject: Re: Core Data complex structure
  • From: Jeff Watkins <email@hidden>
  • Date: Tue, 14 Jun 2005 17:17:44 -0400

Sergio Bacchin wrote:
2) I'm sorry because I'm a newbie, but it is still not clear to me how can I make an NSOutlineView connected to a NSTreeController which mirrors the data structure just created. My final goal is to display a tree of "name" attributes for each object in the data tree, even if they come from different entities.

Sergio, although I'm not at my PB to test this, I think you should probably "derive" all your entities from a common entity, say "NamedObject", which has a name property.


Then in IB, you create an NSTreeController with an entity type of "NamedObject". (Don't forget to specify the "parent==nil" in the filter criteria on the same page or you'll get all the entries except not hierarchical.)

Then you can bind the Name column to the name key of the "NamedObject" entity.

If I'm totally off-base, I hope someone will correct me.

--

Jeff
http://metrocat.org

_______________________________________________
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: 
 >Core Data complex structure (From: Sergio Bacchin <email@hidden>)
 >Re: Core Data complex structure (From: Bill Bumgarner <email@hidden>)
 >Re: Core Data complex structure (From: Sergio Bacchin <email@hidden>)

  • Prev by Date: Re: NSPersistentDocument Core Data Tutorial Help
  • Next by Date: Creating a subclass of an *unknown* object
  • Previous by thread: Re: Core Data complex structure
  • Next by thread: Bindings and NSSegmentedControl
  • Index(es):
    • Date
    • Thread