Re: NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy
Re: NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy
- Subject: Re: NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy
- From: "Frederick C. Lee" <email@hidden>
- Date: Mon, 20 Mar 2006 12:40:18 -0800
In other words, FLATTEN the data model.
Hmmm.
I was able to chain the entities for the GUI using:
NSArrayController(Region) <--- contentSet --- NSArrayController
(Country)....
...that worked okay.
I was hoping to follow the same paradigm using NSTreeControllers.
The desired net result: something similar to XCode's Group panel.
Ric.
On Mar 20, 2006, at 12:51 AM, Keith Wilson wrote:
Maybe you should change your datamodel to be more generic, for example
put all your places in an Entity called Location
have a "Location Type" = { Hemisphere, Continent, Region,
Country, State, County, Province, City, Suburb, Street Address,
MyPlace, ... whatever, ...)
have a relationship called "Location contains Location"
BTW: I used to work for an oil company that divided the world into
four (4) hemispheres - so don't get too hung up on pedantics of
"Location Type" -it's really only a "label of convenience".
Keith from DownUnder
On 20/03/2006, at 6:37 PM, Frederick C. Lee wrote:
So my question is, How can I mimic the Core Data entity diagram in
NSOutlineview?
... In particular, how can I display 'Province' and below?
_______________________________________________
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