• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Suppressing the "Couldn't save document" sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Suppressing the "Couldn't save document" sheet (From: Jonathon Mah <email@hidden>)

  • Prev by Date: Re: Self terminating popup window - need help
  • Next by Date: Re: EXC_BAD_ACCESS and NSDocumentController
  • Previous by thread: Re: Suppressing the "Couldn't save document" sheet
  • Next by thread: XSLT
  • Index(es):
    • Date
    • Thread