Hello Vadim,

For what its worth, I can't see obvious problems with your code. Myself and others have been stuck at the same, frustrating point. I gave up and resurrected my custom migration code based the samples included with Mac OS X 10.4. But its a pain to maintain and gives me a headache just thinking about it. If you solve this please report back.

I see your app is not document-based. Neither is mine. You may have already seen the sample project, MigratingDepartmentAndEmployees, from Apple, I think. It manages to solve the problem but only for a document-based app. I was not able to translate it to my non-document based app. Maybe you will have more luck/patience. Please let us know.

Apple?

Best regards,

Steve

On 14/8/08, [EMAIL PROTECTED] (Vadim Lozko) wrote:

I'm having a problem trying to upgrade an existing store of a Core Data database to a newer model that simply has 1 additional attribute property in an entity. This is not a document based app.
...
when I try to initialize the ManagedObjectModel with [[NSManagedObjectModel alloc] initWithContentsOfURL:[NSURL URLWithString:@"thePath"]], it gives me the following error:

'NSInvalidArgumentException', reason: 'Cannot create an NSPersistentStoreCoordinator with a nil model'

Exactly.  Annoying isn't it :(

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to