• 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
Core Data document-based apps saves empty files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data document-based apps saves empty files


  • Subject: Core Data document-based apps saves empty files
  • From: Andrew Madsen <email@hidden>
  • Date: Thu, 6 Jul 2006 18:27:40 -0600

I've got a document-based Core Data app that was previously working, but is now broken. I can't figure out what I did to break it, but the symptom is that saving doesn't work. I can fill up the document with entities and hit save and it will save a file out, but the window doesn't change to reflect that it is displaying a saved file, it still has "Untitled" in the title bar and the close button shows that there are unsaved changes, even immediately after saving. If I save as XML, I get something like this in the XML file:

<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "file:///System/Library/DTDs/CoreData.dtd">

<database>
    <databaseInfo>
        <version>134481920</version>
        <UUID>C6303AF0-47D9-483B-AF0E-588E488C22E1</UUID>
        <nextObjectID>101</nextObjectID>
        <metadata></metadata>
    </databaseInfo>
</database>

There should be entities with multiple attributes and relationships, but instead, nothing. If I open one of these files, my app doesn't complain it just opens up what appears to be a completely empty document. It doesn't matter whether I save in Binary, SQL or XML, the same thing happens.

I haven't purposely done anything to modify or control the save functionality in my application. I'm relying on Core Data and the defaults set up in the Core Data Document-Based app template. However, obviously something I've done has caused a problem. I haven't changed the default document types for my application. I've tried deleting everything relating to my app, including the cache and .plist file and rebuilding it with no effect. I haven't been able to find anyone reporting this same problem by searching, so I'm hoping someone here has seen it or has some idea why it may be happening.
_______________________________________________
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
  • Prev by Date: NSTableView - how to select text when editing a column?
  • Next by Date: Newbie Q : writing into a text view programmatically
  • Previous by thread: Re: NSTableView - how to select text when editing a column?
  • Next by thread: Core Data document-based apps saves empty files
  • Index(es):
    • Date
    • Thread