If I have an unsaved doc open in my app (I mean one that has never been saved 
to disk), and I kill the app, upon relaunch, the OS attempts to restore that 
document, but it does so incorrectly. First of all, the data was never saved by 
the new Cocoa autosaving mechanism (we have our own and must use it for now). 
Second, it creates a new untitled doc by calling our document controller's 
openUntitledDocumentAndDisplay method. Why would it do that? A new untitled doc 
with nothing in it has *nothing* to do with what might've been an untitled doc 
with user changes in it.

Also, what should I be overriding and returning in my document subclass to 
ensure that the OS autosaving never happens and prevent it from trying to 
create new docs on launch like this?

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to