• 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
Core Data, migrate a model split into two files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data, migrate a model split into two files


  • Subject: Core Data, migrate a model split into two files
  • From: Dan Waltin <email@hidden>
  • Date: Sat, 4 Jul 2009 00:10:59 +0200

Hi,

I have a Core Data application, with the model split into two .xcdatamodel files, inspired by Chris Hanson at http://chanson.livejournal.com/187540.html . The application is only supported on 10.5.

The application is usd to track patient records and the to xcdatamodel files are called "MetaData" and "PatientData".
In the MetaData model meta data about information collected about patients is stored, and in the PatientData model
the actual patient data is stored. During startup these model files are merged into one NSManagedObjectModel
instance, as described by Chris Hanson.


Now, I want to update the model and hence migrate the application data.

I'm familiar with how to migrate a model in the more "normal" case where you only have one xcmodeldata file.

Adding a new version to e.g. the PatientData.xcdatamodel file and doing the necessary changes to the model
is of course easy, but then what? Do I create a regular mapping model, or do I have to do the migration
manually? Or do I have to go back to having the model in only one xcdatamodel file?


Is there anyone who have done this, or have any idea on how to proceed?

Kind regards
Dan Waltin
_______________________________________________

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


  • Prev by Date: Animation Did Stop - Works For OS3 but not OS2.2
  • Next by Date: Re: How do I get the version of AppKit.framework available in Cocoa Application Framework 10.5? Probably a dumb question I know..
  • Previous by thread: Re: Animation Did Stop - Works For OS3 but not OS2.2
  • Next by thread: Font matching
  • Index(es):
    • Date
    • Thread