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.
Thanks,
Andrew Madsen
<?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.
Thanks,
Andrew Madsen