I am trying to migrate from one .xcdatamodel file to another. I have a 
NSEntityMigrationPolicy subclass, the name of which I have entered in xcode-> 
.xcmappingmodel file -> entity -> "custom Policy" field.

I run my app which successfully opens and runs the previous version of my data 
so I can only assume basic migration has worked. HOWEVER 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
{
        NSLog(@"this log is never shown!!!!");
        return YES;
}
 



Does anyone have any ideas why my it might not be getting called? I am new to 
core data migration and I'm currently at a loss as to why this is not behaving 
as I feel it should._______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to