Re: Core data model configuration & Leopard
Re: Core data model configuration & Leopard
- Subject: Re: Core data model configuration & Leopard
- From: mmalc crawford <email@hidden>
- Date: Sun, 28 Oct 2007 18:12:14 -0700
On Oct 28, 2007, at 5:45 PM, email@hidden wrote:
I have a relatively simple core data non-document application that
runs fine under OS 10.4. However, when I run the same app on OS
10.5, it cannot open the data file. I get the error "The model
configuration used to open the store is incompatible with the one
that was used to create the store." I traced the first time this
was called to the code below, the call to
addPersistentStoreWithType. The method "managedObjectContext" has
not changed since I created the project with Xcode. Does anyone
have any suggestions as what I can do to get my app to read the
store in OS 10.5?
Has the *model* changed in any way? With the new versioning and
migration feature in 10.5, Core Data takes the following into account:
Core Data’s perspective on versioning is that it is only interested in
features of the model that affect persistence. This means that for two
models to be compatible:
• For each entity the following attributes must be equal: name,
parent, isAbstract, and properties.
className, userInfo, and validation predicates are not compared.
• For each property in each entity, the following attributes must be
equal: name, isOptional,isTransient, isReadOnly, for attributes
attributeType, and for relationshipsdestinationEntity, minCount,
maxCount, deleteRule, and inverseRelationship.
userInfo and validation predicates are not compared.
(see Core Data Model Versioning and Data Migration Programming Guide >
Versioning).
Not all this information is maintained in the store, but it *may* be
that you managed to get away with something on Tiger that isn't now
allowed on Leopard.
mmalc
_______________________________________________
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