Re: Core Data application types
Re: Core Data application types
- Subject: Re: Core Data application types
- From: mmalc crawford <email@hidden>
- Date: Fri, 18 May 2007 11:25:17 -0700
On May 18, 2007, at 9:57 AM, MH wrote:
I'm making the mistake of trying to run 2 applications.
The issue that gave rise to the error you showed earlier is that you
set the Class of the array controller to NSApplication, so it was
presumably trying to create additional instances thereof...
1. There is the library store
2. Is the individual document that is bound to it that can also update
its content.
It seems to me that 2 models and 2 managedContexts are needed for this
type of thing, but I'm a not quite sure how to go about it.
Probably the easiest approach is to create two models, each with a
configuration that includes all the entities they contain.
You then merge the models, but ensure that you create stores using the
appropriate configuration.
I thought that core data automatically aggregated the various
.xcdatamodels at runtime, which to my mind would be confusing the
issue, but I'm probably mistaken.
NSPersistentDocument aggregates models by default.
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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