Deleting a Core Data stack directory
Deleting a Core Data stack directory
- Subject: Deleting a Core Data stack directory
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 5 Jul 2007 16:30:28 -0700
Hi, all,
I have a non-document-based, Core Data application. When upgrading
to a new version, the stack entities in certain cases will have
different attributes due to a new version of my data model.
In these cases I sometimes get an error due to the incompatibility
between the two versions of the program.
I have created a "Stack Reset" program that removes the program's
directory in the Application Support folder, but I'm wondering
whether there's a better way to handle migration.
Is there a way to detect incompatibilities and reset the Core Data's
stack directory without resorting to an external program? It seems a
bit hackish to delete the stack folder while the program is running--
I can imagine that Bad Things might happen.
Cheers,
Andrew
_______________________________________________
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