Re: Core Data versioning woes
Re: Core Data versioning woes
- Subject: Re: Core Data versioning woes
- From: Graham Perks <email@hidden>
- Date: Sun, 10 Aug 2008 21:28:02 -0500
On Aug 10, 2008, at 2:06 PM, Graham Perks wrote:
The document that's open post-migration is the "foo~" version
Is this a "feature" of migration? I tried the most basic migration app
I could build. And when I try to save, it says "This document has been
renamed to "test2~". While that's different from the message my real
application gives, it's still completely bizarre. Why should a user
care about the tilde filename at all?
Note that, at first, the document name in the title bar is the
correct, non-tilde version, until you hit Save. Then the title bar
name grows a tilde!!
This is so odd I've uploaded the project: http://asinglepixel.com/cdtest2.zip
Included is a "test2" file that is the document saved in the version 1
format. Open that up, click Save and watch the title bar.
Model v1 contains a single entity with a "name" attribute. v2 adds an
"address" attribute. The only code change from the Core Data template
was an addition in MyDocument.m,
configurePersistentStoreCoordinatorForURL to tell the store to support
versioning.
What am I missing here?
Cheers,
Graham.
http://www.asinglepixel.com
_______________________________________________
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