• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CoreData - multiple stores advice...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreData - multiple stores advice...


  • Subject: CoreData - multiple stores advice...
  • From: Martin Linklater <email@hidden>
  • Date: Fri, 25 Jan 2008 04:34:02 -0800

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 ?

Do I need multiple NSPersistentStoreCoordinators - one for each store ?

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 ?

Also, when I add a persistent store to my coordinator with 'addPersistentStoreWithType:' it seems to delete the store if it is already there - is there a differentiation between creating a new empty store and simply attaching to a store that already exists ? What part of the API specifies this ?

Any source or hyperlinks you could include with your answers would be appreciated.

Thank you for your help.

- Martin
_______________________________________________

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

  • Follow-Ups:
    • Re: CoreData - multiple stores advice...
      • From: William Turner <email@hidden>
    • Re: CoreData - multiple stores advice...
      • From: mmalc crawford <email@hidden>
    • Re: CoreData - multiple stores advice...
      • From: Martin Linklater <email@hidden>
  • Prev by Date: bytesize of an object
  • Next by Date: I've tried all the string encoding but still cannot read a text file.
  • Previous by thread: Re: bytesize of an object
  • Next by thread: Re: CoreData - multiple stores advice...
  • Index(es):
    • Date
    • Thread