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

Re: Custom Entity Migration Policy


  • Subject: Re: Custom Entity Migration Policy
  • From: mmalc crawford <email@hidden>
  • Date: Sun, 2 Dec 2007 19:56:38 -0800


On Dec 2, 2007, at 2:15 PM, Andrew Kimpton wrote:

The documentation is pretty non-existent as to how a subclass of NSEnityMigrationPolicy should use some of it's arguments (like the NSEntityMapping * argument).

Well, there's not much to say beyond, for example, "The mapping object in use." You're free to ask the objects passed as parameters about their state etc. in exactly the same way you would any other object passed as a parameter in a callback (e.g. <http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSTableDataSource_Protocol/Reference/Reference.html#//apple_ref/occ/instm/NSObject/tableView:objectValueForTableColumn:row: >).

As for the general principles of how to subclass, they're given in <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataVersioning/Articles/vmMigrationProcess.html > ("Custom Entity Migration Policies" > "Three-Stage Migration").

mmalc

_______________________________________________

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: 
 >Custom Entity Migration Policy (From: Andrew Kimpton <email@hidden>)

  • Prev by Date: Re: SplashScreen
  • Next by Date: Re: Is the cascade delete rule right for me?
  • Previous by thread: Re: Custom Entity Migration Policy - solved ?
  • Next by thread: WebView vs. Safari
  • Index(es):
    • Date
    • Thread