Re: Core Data merging
Re: Core Data merging
- Subject: Re: Core Data merging
- From: Steve Steinitz <email@hidden>
- Date: Fri, 15 Aug 2008 11:02:20 +1000
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@hidden (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 (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