Re: A possibly simpler way to do custom Core Data migration
Re: A possibly simpler way to do custom Core Data migration
- Subject: Re: A possibly simpler way to do custom Core Data migration
- From: Jerry Krinock <email@hidden>
- Date: Mon, 24 Feb 2014 07:48:21 -0800
On 2014 Feb 23, at 01:07, Yi Lin <email@hidden> wrote:
> After reading Apple’s docs on migration policy subclasses, I find it very convoluted
I don’t find mapping models or NSMigrationPolicy to be any more complex than is necessary. There are some holes in the documentation which you’ll need to search around for. This is helpful…
https://devforums.apple.com/message/146412#146412
On 2014 Feb 23, at 01:07, Yi Lin <email@hidden> wrote:
> I can even make use of logic in my NSManagedObject subclasses to construct data in the new model instead of
> working with the complex mechanism in migration policy.
Migration logic is ugly, rarely used, and ideally something that you aspire to delete in the distant future. I would rather have it in an NSMigrationPolicy subclass rather than muck up my managed object subclasses.
_______________________________________________
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