Skip navigation.
 
mlRe: Suppressing the "Couldn't save document" sheet
FROM : Mark Alldritt
DATE : Fri Apr 15 20:21:02 2005

Hi,

>> Since I'm using sheets for all this and I detect problems like this in
>> the
>> NSDocument writeToFile:... method, I must return NO after posting my
>> alert
>> sheet.

>
> Why?


If I return YES, I still get the "Couldn't save document" sheet (I presume
that Cocoa has detected that I didn't actually write anything to the
document).  Also, when the save is happening during a document close,
returning YES allows the document window to close when the content hasn't
actually been saved -- at least I think this is what's happening.

Cheers
-Mark

------------------------------------------------------------------------
Mark Alldritt                      Late Night Software Ltd.
Phone: 250-380-1725                Script Debugger 3.0 - AppleScript IDE
WEB:  http://www.latenightsw.com/  Affrus 1.0 - Perl Debugging

Related mailsAuthorDate
mlSuppressing the "Couldn't save document" sheet Mark Alldritt Apr 13, 19:40
mlRe: Suppressing the "Couldn't save document" sheet Jonathon Mah Apr 13, 19:47
mlRe: Suppressing the "Couldn't save document" sheet Mark Alldritt Apr 15, 20:21