Skip navigation.
 
mlRe: CoreData - multiple stores advice...
FROM : mmalc crawford
DATE : Fri Jan 25 17:12:00 2008

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

Related mailsAuthorDate
mlCoreData - multiple stores advice... Martin Linklater Jan 25, 13:34
mlRe: CoreData - multiple stores advice... Martin Linklater Jan 25, 14:48
mlRe: CoreData - multiple stores advice... mmalc crawford Jan 25, 17:12
mlRe: CoreData - multiple stores advice... William Turner Jan 25, 17:17
mlRe: CoreData - multiple stores advice... Martin Linklater Jan 29, 13:50
mlRe: CoreData - multiple stores advice... mmalc crawford Jan 29, 14:06
mlRe: CoreData - multiple stores advice... Martin Linklater Jan 29, 15:57
mlRe: CoreData - multiple stores advice... mmalc crawford Jan 29, 16:45
mlRe: CoreData - multiple stores advice... Martin Linklater Jan 29, 18:12
mlRe: CoreData - multiple stores advice... mmalc crawford Jan 29, 18:17