Re: Suppressing the "Couldn't save document" sheet
Re: Suppressing the "Couldn't save document" sheet
- Subject: Re: Suppressing the "Couldn't save document" sheet
- From: Mark Alldritt <email@hidden>
- Date: Fri, 15 Apr 2005 11:21:02 -0700
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden