• 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: NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy (From: "Frederick C. Lee" <email@hidden>)
 >Re: NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy (From: Keith Wilson <email@hidden>)

  • Prev by Date: Re: NSString propertyList crash
  • Next by Date: Re: CGBitmapContextCreate hates me
  • Previous by thread: Re: NSTreeController w/Core Data: chaining NSManagedObjects in a hierarchy
  • Next by thread: "parse error before 'OBJC_STRING' token" when including evp.h from 10.4u SDK on an Intel machine
  • Index(es):
    • Date
    • Thread