Two (or more models) each with own store
Two (or more models) each with own store
- Subject: Two (or more models) each with own store
- From: Volker Runkel <email@hidden>
- Date: Fri, 17 Jun 2005 12:27:04 +0200
Hi List,
I am playing around with CoreData to create an app that has:
- One "main" model that contains a couple of entities
- Some "supporting" models, each containing one or two entities
The supporting models are used for supplying lists of possible values
for some of the attributes of the main entities. All models are drawn
and located in one XCode project.
The app is not document based, and I would like to store the main
model as well as the supporting models each in its own store (file).
How can I tell the App controller to use different stores for each
model. I already found mmalcoms tips on using
addPersistentStoreWithType but I have no clue how to tell my
application to use for each model an own store ?
I have planned this set up so I users can easily update these
supporting files by replacing the files without any special written
import routines.
Do I oversee something simple ?
Volker
_______________________________________________
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