• 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: A possibly simpler way to do custom Core Data migration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >A possibly simpler way to do custom Core Data migration (From: Yi Lin <email@hidden>)

  • Prev by Date: Re: Disabling screen capture
  • Next by Date: exporting image files to disk using CGImageDestination
  • Previous by thread: A possibly simpler way to do custom Core Data migration
  • Next by thread: Rotate NSTextView, distorted embedded image
  • Index(es):
    • Date
    • Thread