Re: Custom Entity Migration Policy
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