Re: NSEntityMigrationPolicy subclass methods not being called

2010-09-08 Thread Jerry Krinock
On 2010 Sep 08, at 01:43, Ben wrote: > I get the following… > > NSUnderlyingError = Error Domain=NSCocoaErrorDomain Code=256 > UserInfo=0x1ec540 "Operation could not be completed. (Cocoa error 256.)"; > reason = "Failed to save new store after first pass of migration."; Nice-looking error,

Re: NSEntityMigrationPolicy subclass methods not being called

2010-09-08 Thread Ben
Hi Jerry, thanks for the reply. I managed to get the subclass methods to fire eventually, I have no idea what I was doing wrong though. I trashed all my files and started again and for some reason that fixed it. But I now have another problem, core data migrates fine without the NSEntityMigrati

Re: NSEntityMigrationPolicy subclass methods not being called

2010-09-07 Thread Jerry Krinock
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

NSEntityMigrationPolicy subclass methods not being called

2010-09-06 Thread Ben
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 o