Re: Core Data + XML files
Re: Core Data + XML files
- Subject: Re: Core Data + XML files
- From: Jacob Lukas <email@hidden>
- Date: Thu, 19 May 2005 18:41:20 -0700
- Resent-date: Thu, 19 May 2005 18:42:10 -0700
- Resent-from: Jacob Lukas <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Cocoa-Dev List <email@hidden>
On May 19, 2005, at 6:24 PM, mmalcolm crawford wrote:
On May 19, 2005, at 6:07 PM, Jacob Lukas wrote:
I tried saving my file in all three formats (SQL, Binary, XML). All work. Tried loading those files. SQL and Binary both load fine. However, the XML file throws this error: "The document "Untitiled.timeit" could not be opened. The store type is inconsistent with the data format." Has anyone else come across this error? What am I doing wrong?
Either you didn't save the file as an XML document (you probably didn't specify NSXMLStoreType as the type argument to migratePersistentStore:toURL:options:withType:error:), or when you read it in the argument you provide to addPersistentStoreWithType:... is something other than NSXMLStoreType.
I didn't write a single line of code, I just edited the target's document types. I even checked the CoreData Document-Based Application template to make sure it was right. Still no luck.
Thanks, Jacob |
_______________________________________________
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