Does migratePersistentStore not overwrite?
Does migratePersistentStore not overwrite?
- Subject: Does migratePersistentStore not overwrite?
- From: Eric Crichlow <email@hidden>
- Date: Sun, 3 Aug 2008 17:49:17 -0500
- Acceptlanguage: en-US
- Thread-topic: Does migratePersistentStore not overwrite?
I've spent... wasted the weekend trying to figure out what was wrong with my code or with Core Data.
The symptom seemed to be that I could create entities in my app, and do a "Save As..." and everything worked right. but when I then added another entity or 2, and did a "Save", quit the app and reopened the app with the saved file, the additions from the "Save" weren't there. After looking at everything in my data model and managed object context 10 times over, checking state of registered, inserted and updated objects at every point in the process, it finally looks like the only real problem is that when I use migratePersistentStore to migrate my in-memory store to a binary store on disk, if I'm doing a "Save", which means I'm writing to a file I previously created, the old file isn't getting overwritten, but the call doesn't return an error.
Was there some setup call I needed to make early on so that the second call to migratePersistentStore should overwrite the first file?
Shouldn't migratePersistentStore be returning an error to tell me that it didn't overwrite?
...Eric...
This message is intended only for the use of the individual (s) or entity to which it is addressed and may contain information that is privileged, confidential, and/or proprietary to eInstruction and its affiliates. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, forwarding or copying of this communication is prohibited without the express permission of the sender. If you have received this communication in error, please notify the sender immediately and delete the original message.
_______________________________________________
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