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
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 mails | Author | Date |
|---|---|---|
| Mark Alldritt | Apr 13, 19:40 | |
| Jonathon Mah | Apr 13, 19:47 | |
| Mark Alldritt | Apr 15, 20:21 |






Cocoa mail archive

