Re: Displaying contents of more than one NSManagedObjectContext?
Re: Displaying contents of more than one NSManagedObjectContext?
- Subject: Re: Displaying contents of more than one NSManagedObjectContext?
- From: Oftenwrong Soong <email@hidden>
- Date: Mon, 11 Jan 2010 12:17:37 -0800 (PST)
Hi Rick,
It is my limited understanding of core data that you can load as many managed object *models* as you want into a managed object context to obtain the union of all those models. You may want to look at the core data command line tutorial, which shows how to write a non-gui console-based program that uses core data. None of the "magic" is present and everything is done programmatically. This tutorial may be of use in showing you how to load multiple models.
Hope this is helpful,
Soong
----- Original Message ----
From: Rick Mann <email@hidden>
To: Cocoa Developer <email@hidden>
Sent: Wed, December 30, 2009 10:54:18 AM
Subject: Displaying contents of more than one NSManagedObjectContext?
Hi. I have an app that has the concept of parts libraries. I would like for my app to be able to open any number of library documents, each with its own NSManagedObjectContext, but display the parts palette as a single UI showing the union of all parts.
Is this possible, or will I have to perform some Core Data gymnastics to load everything into a separate, new context for use in display?
TIA,
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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