Problem using multiple stores with CoreData

  • Hello,

    I'm writing a NSPersistentDocument based application. For some reasons,
    I would like to save the datas of my document in 2 different physical
    files on the disk.
    For that I override the 'configurePersistentStoreCoordinatorForURL'
    method in my NSPersistentDocument subclass to add two stores to the
    persistentStoreCoordinator.

    My problem is that for an unknown reason, another method modifies the
    persistentStoreCoordinator and remove one of my two stores. I discovered
    that behavior subscribing to the
    NSPersistentStoreCoordinatorStoresDidChangeNotification.

    How can I identify which method is modifying to the
    persistentStoreCoordinator ?
    Which methods are supposed to modify that object ?

    Thank you for your help.

    Xavier
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today