• 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
Re: Core Data + XML files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core Data + XML files
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Core Data + XML files
  • Next by Date: Re: Core Data + XML files
  • Previous by thread: Re: Core Data + XML files
  • Next by thread: Re: Core Data + XML files
  • Index(es):
    • Date
    • Thread