Re: Core Data Manual Migration

2009-09-14 Thread Yvan BARTHÉLEMY
After further research I determined that this problem occured because
I didn't set the source type and destination type. I will fill a bug
report about the message not containing enough information (by the
way, I'm running 10.5.6 as this is my target platform, this might have
been solved since that).

However, the reference for 'NSMigrationManager' indicated that
possible values for type: are specified
'NSPersistentStoreCoordinator' Reference. Based on that I assumed (as
it was not indicated), that the accepted values would be the same as
in addPersistentStoreWithType: which nil is a valid value (though
not documented as valid).

I'm wondering if I should also file a documentation bug about the fact
that nil is not valid in this context or never valid (this works, but
I should not rely on this behavior). Or if this should be supported,
and then I should file a behavior bug.

Thanks,
Yvan

2009/9/11 Ben Trumbull trumb...@apple.com:
 The process fails here and the log then contains the following:
 An error occured while manually migrating document: Error
 Domain=NSCocoaErrorDomain Code=134110 UserInfo=0xf336960 An error
 occured during persistent store migration.
 [6871:813] Error: {
   reason = Can't add source store;
 }

 There should be more in the userInfo dictionary explaining what's going on.
  If you can reproduce it in a new test project with your models  mapping
 models, then please file a bug with the project source zipped up at
 bugreport.apple.com and we'll look at it.

 - Ben


___

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


re: Core Data Manual Migration

2009-09-11 Thread Ben Trumbull

The process fails here and the log then contains the following:
An error occured while manually migrating document: Error
Domain=NSCocoaErrorDomain Code=134110 UserInfo=0xf336960 An error
occured during persistent store migration.
[6871:813] Error: {
   reason = Can't add source store;
}


There should be more in the userInfo dictionary explaining what's  
going on.  If you can reproduce it in a new test project with your  
models  mapping models, then please file a bug with the project  
source zipped up at bugreport.apple.com and we'll look at it.


- Ben

___

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