Re: Core Data complex structure
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