Re: CoreData - multiple stores advice...
Re: CoreData - multiple stores advice...
- Subject: Re: CoreData - multiple stores advice...
- From: mmalc crawford <email@hidden>
- Date: Fri, 25 Jan 2008 08:12:00 -0800
On Jan 25, 2008, at 4:34 AM, Martin Linklater wrote:
Apologies if this has been covered before, but I've delved into the
archives and I'm still not sure about a few Q's I have.
My application will have multiple SQLite stores. One that ships with
the application and is read only, and there will be othersr which
contains user generated data. I understand you can access these all
through the same MOC, but I'm unsure how to set up the MOMs and
NSPersistentStoreCoordinator underneath them. What is the best
method ?
Do I need multiple MOM's - one for each store ?
No. You only have one MOM per persistent store coordinator.
Do I need multiple NSPersistentStoreCoordinators - one for each
store ?
No.
See <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdBasics.html#//apple_ref/doc/uid/TP40001650-207422-TPXREF147
> and <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdChangeManagement.html
>.
I've also read that setting up NSPersistentStores and
NSPersistentStoreCoordinators can take 'options' NSDictionaries - is
there a complete list of these options in the docs anywhere ?
Yes.
<http://developer.apple.com/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSPersistentStoreCoordinator_Class/Reference/NSPersistentStoreCoordinator.html#//apple_ref/doc/uid/TP30001180-BAJBGGIB
>
mmalc
_______________________________________________
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