• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Deleting a Core Data stack directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Deleting a Core Data stack directory
      • From: "Marcus S. Zarra" <email@hidden>
  • Prev by Date: Re: Custom NSMenuItems on the fly?
  • Next by Date: Re: Custom NSMenuItems on the fly?
  • Previous by thread: Re: NSSavePanel and allowing unknown extensions
  • Next by thread: Re: Deleting a Core Data stack directory
  • Index(es):
    • Date
    • Thread