Re: NSEntityMigrationPolicy subclass methods not being called
Re: NSEntityMigrationPolicy subclass methods not being called
- Subject: Re: NSEntityMigrationPolicy subclass methods not being called
- From: Jerry Krinock <email@hidden>
- Date: Tue, 7 Sep 2010 19:05:28 -0700
On 2010 Sep 06, at 05:31, Ben wrote:
> my NSEntityMigrationPolicy subclass methods are not being called so that I can run further migration code.
>
> @implementation TestMigrationPolicy
>
> - (BOOL)beginEntityMapping:(NSEntityMapping *)mapping
> manager:(NSMigrationManager *)manager
> error:(NSError * *)error
Just made a custom migration yesterday, doing what you said you did, and it worked fine. However the only method I've ever implemented in my NSEntityMigrationPolicy subclasses is createDestinationInstancesForSourceInstance:entityMapping:manager:error:. I've never had any trouble with it. That method should be called once for each object in your store.
Or maybe stick an NSLog() in +initialize.
_______________________________________________
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