• 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
NSEntityMigrationPolicy subclass methods not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSEntityMigrationPolicy subclass methods not being called


  • Subject: NSEntityMigrationPolicy subclass methods not being called
  • From: Ben <email@hidden>
  • Date: Mon, 6 Sep 2010 13:31:37 +0100

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 (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

  • Follow-Ups:
    • Re: NSEntityMigrationPolicy subclass methods not being called
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Binding an objects "Enabled" to a button in IB
  • Next by Date: Re: Phone lock/sounds
  • Previous by thread: Re: Binding an objects "Enabled" to a button in IB
  • Next by thread: Re: NSEntityMigrationPolicy subclass methods not being called
  • Index(es):
    • Date
    • Thread