• 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: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?


  • Subject: Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 20 Apr 2014 19:23:30 -0700

On Apr 20, 2014, at 6:58 PM, Trygve Inda <email@hidden> wrote:

>> On Apr 20, 2014, at 4:29 PM, Trygve Inda <email@hidden> wrote:
>>
>>> A small correction... This seems to only happen when I do a "Save As". If
>>> the file is dirty and I do a "Save", the "file is dirty warning" catches the
>>> quit.
>>
>> Does the bad behavior also apply to Save if you turn off the “Close all
>> windows when quitting apps” option in System Preferences?
>>
>> --Kyle Sluder
>
> Yes - it quits regardless of that setting.

What I'm asking is whether turning that setting off causes Save to exhibit the same behavior as Save As—in other words, are you only seeing a difference in behavior because your machine happens to be configured in a way that involves NSApplication's consult-the-dirty-documents codepath?

And in that vein, have you subclasses NSApplication at all, implemented -[<NSApplicationDelegate> applicationShouldTerminate:] and/or sent -replyToApplicationShouldTerminate: to NSApp, or taken over termination yourself?

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
      • From: Trygve Inda <email@hidden>
References: 
 >Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • Next by Date: Re: Strange toolbar/view/resize cursor interaction
  • Previous by thread: Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • Next by thread: Re: canAsynchronouslyWriteToURL:ofType:forSaveOperation: Prevent Quit?
  • Index(es):
    • Date
    • Thread