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

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

References: 
 >NSEntityMigrationPolicy subclass methods not being called (From: Ben <email@hidden>)

  • Prev by Date: NSNumber compare: Giving Unexpected Results
  • Next by Date: Re: What REALLY determines which application opens a file?
  • Previous by thread: NSEntityMigrationPolicy subclass methods not being called
  • Next by thread: Re: NSEntityMigrationPolicy subclass methods not being called
  • Index(es):
    • Date
    • Thread