Re: Import old Core Data Model?
Re: Import old Core Data Model?
- Subject: Re: Import old Core Data Model?
- From: Dave Fernandes <email@hidden>
- Date: Mon, 10 Feb 2014 23:29:53 -0500
Perhaps there is an elegant way, but this also works:
Make a new model in Xcode.
Close the project.
Open the packages of the old and new models in the Finder (Show Package Contents of the .xcdatamodel packages inside the .xcdatamodeld package).
Copy the ‘contents’ file of the old package into the new.
On Feb 10, 2014, at 11:15 PM, Rick Mann <email@hidden> wrote:
> I decided to write the newest version of an iOS app from scratch, copying and pasting big chunks of code from the old project.
>
> In the new app I added a copy of the old app's Core Data model, and proceeded to modify it. Unfortunately, I didn't first make a new version. I'd like to add the old model in again as an older version that it can use for lightweight migration, but I can't figure out how. Editor->Import… doesn't allow me to choose a model file (nor can I find help on the feature).
>
> I tried adding a new version to make the .xcdatamodeld, but I can't drag the old file into that. Dragging it to the package in the Finder doesn't seem to help, either.
>
> Is there any way to do this?
>
> Thanks,
>
> --
> Rick
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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