On Jan 16, 2008, at 2:03 PM, Daniel Wambold wrote:
Hello. I have written a relatively simple NSPersistentDocument
application that uses CoreData to keep track of clients and specific
events belonging to a given client. For some reason, if I open a
file (say, by double-clicking it in the Finder) and immediately
press Apple-s to re-save it, the file becomes zero bytes (in the
Finder) and is unreadable. However, if I click on the data in the
table views (the clients, for example, which causes the event list
to update in the adjacent table view), THEN press Apple-s, it saves
properly. It even over-writes the zero-byte file with the correct
data if I didn't quit in the interim.