CoreData and migratePersistentStore
CoreData and migratePersistentStore
- Subject: CoreData and migratePersistentStore
- From: Ron Ballesteros <email@hidden>
- Date: Sun, 04 Dec 2005 17:43:39 -0800
Hi All,
In my CoreData doc based application I'm working on a providing a preview and export feature using XSLT. This currently works to a degree using migratePersistentStore where I migrate the original NSBinaryStoreType to NSXMLStoreType then load the xml file generated to an NSXMLDocument to apply the XSLT. After migrating to the NSXMLStoreType I want to revert back to the original store type of NSBinaryStoreType.
Reading the documentation on migratePersistentStore:toURL:options:withType:error: it says the original store is no longer a valid reference and so I decided to try to migrate the new xml store type back to the original binary store type. The problem occurs when I try to save the file, I get a sheet that says "The location of the document "testing" cannot be determined. You can specify where to save It." with Cancel and Save As? buttons.
I'm not quite sure as to why I am getting this error considering that when I migrate back to the original NSBinaryStoreType I included the NSURL file path of where the file was originally saved.
After I migrate to the NSXMLStoreType how can I revert back to the original NSBinaryStoreType and allow the user to continue saving the document?
Am I understanding the use of migratePersistantStore or is this the case where I need to add and remove persistent store types to provide a preview and export?
Thanks,
ron
- who is slowly trying to wrap is head around CoreData.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden