Re: 10.5 + Core Data project error?
Re: 10.5 + Core Data project error?
- Subject: Re: 10.5 + Core Data project error?
- From: Alex Reynolds <email@hidden>
- Date: Wed, 31 Oct 2007 09:19:16 -0400
On Oct 31, 2007, at 9:04 AM, mmalc crawford wrote:
Are you doing anything else before the first build (e.g. adding
other frameworks)?
No, nothing at all. Just a fresh Core Data Application project.
I am building the project just after creating it, to make sure things
are working properly before I begin to work on the data model and
access methods.
The same error happens with a "Quartz Composer Core Data Application"
project, as well.
I tried your suggestion:
NSArray bundleArray = [NSArray arrayWithObject:[NSBundle mainBundle]];
managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:
bundleArray] retain];
...but I get 4 compilation errors from this code:
NSArray bundleArray = [NSArray arrayWithObject:[NSBundle mainBundle]];
error: invalid initializer
error: statically allocated instance of Objective-C class 'NSArray'
error: statically allocated instance of Objective-C class 'NSArray'
managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:
bundleArray] retain];
error: incompatible type for argument 1 of 'mergedModelFromBundles:'
When I try the following:
managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles:
[NSArray arrayWithObject:[NSBundle mainBundle]]] retain];
I don't get compilation errors, but I get the same "The model
configuration used to open the store is incompatible with the one that
was used to create the store".
Regards,
Alex
..............................................................
Alex Reynolds, M. Biot.
Sr IT Specialist
217 Leidy Building / 6013
Department of Biology
University of Pennsylvania
Philadelphia, PA 19104
V: +1 215 573.2818
F: +1 215 898.8780
E: mailto:email@hidden
W: http://www.bio.upenn.edu/computing/
_______________________________________________
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