• 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 Migration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Migration


  • Subject: Re: Core Data Migration
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 21 Dec 2009 17:56:24 -0800

On 2009 Dec 20, at 23:40, Chaitanya Pandit wrote:

> I'm working on the migration for one of my Core Data document based application
>
> One weird thing that is happening is that just after the "configurePersistentStoreCoordinatorForURL..." call, the contents of my document on the disk are changed ... i can no longer open that document in 1.0 as it has changed the data and it throws an alert saying the version of the model has been changed

But something else should happen, which is that, if the filename is, for example,  SomeDoc.myapp, the original file will be copied to SomeDoc~.myapp.  Note the tilde.

I've never seen this documented anywhere, though.  Also, I've never tried to open such a migrated document with an earlier app version, but it would make sense that the earlier version would look for and automatically load the old tilde document if it couldn't load the current document due to model changed.

I recently had alot of trouble with Core Data migration, and saw alot of crap, but never saw a migration occur without the tilde doc appearing.  If you figure out how you broke it, let us know.  I'm worried that I might need to know someday ;)

_______________________________________________

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

References: 
 >Core Data Migration (From: Chaitanya Pandit <email@hidden>)

  • Prev by Date: Re: Menu shortcuts without modifiers?
  • Next by Date: Re: UIImage and shadows, WAS: Re: Please if some one knows
  • Previous by thread: Core Data Migration
  • Next by thread: Re: Core Data Migration
  • Index(es):
    • Date
    • Thread