• 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
Re: Core Data PersistentStore woes with SQLite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data PersistentStore woes with SQLite


  • Subject: Re: Core Data PersistentStore woes with SQLite
  • From: Scott Stevenson <email@hidden>
  • Date: Tue, 14 Nov 2006 16:09:43 -0800


On Nov 14, 2006, at 6:20 AM, Elise van Looij wrote:

Until this is fixed (it might be something really simple) I seems to me that it would be best to stick to the NSXMLStoreType when still doing a lot of experimenting in the datamodel.

That's basically true.

If you use SQLite, the tables are created once. If you change your model, the database will be out of sync.

It would, of course, be nice if changing the model made the database "just work," but it's actually not an easy thing from Apple's perspective. I think they've heard loud and clear that it needs to get better, though.

Here's the official doc which describes the situation:

<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/ Articles/cdVersioning.html>

Core Recipes also contains an example of migration. It's not totally simple but it is possible. You obviously already know where to find this code, but just for the archives:

<http://developer.apple.com/samplecode/CoreRecipes/>

    - Scott
_______________________________________________
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


References: 
 >Core Data PersistentStore woes with SQLite (From: Elise van Looij <email@hidden>)

  • Prev by Date: Re: NSImage and PNG problems
  • Next by Date: Re: Barcode Scanner project updated for Built-in iSights
  • Previous by thread: Core Data PersistentStore woes with SQLite
  • Next by thread: NSImage and PNG problems
  • Index(es):
    • Date
    • Thread