Re: Sheet interferes with close widget and app quit
Re: Sheet interferes with close widget and app quit
- Subject: Re: Sheet interferes with close widget and app quit
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 21 Aug 2001 04:28:34 -0400
on 8/20/01 8:01 PM, David P. Henderson at email@hidden wrote:
>
On Monday, August 20, 2001, at 04:12 , Bill Cheeseman wrote:
>
>
> There exists documentation that explains (or hints at an explanation
>
> of) how
>
> to dismiss both the sheet and the window. The same technique might be
>
> usable
>
> to dismiss the sheet and quit the application simultaneously. I believe
>
> this
>
> is documented in the Cocoa release notes for Public Beta, or maybe for
>
> PB4,
>
> but not yet picked up in the Mac OS X documentation. Search for the
>
> "NSBeginAlertsheet" function and see what you find.
>
>
>
Can you quit an application or close windows in it when a regular ie
>
detached modal dialog is up? Remember, Sheets are just modal dialogs
>
attached to a specific window and affecting behavior in that window
>
only. A user has to deal with a modal dialog before they can quit an app
>
or close a window, implementing the above strategy would be a violation
>
of UI consistency. Don't pollute the metaphor.
I beg to differ. The primary example of this technique in Mac OS X is
closing a window that has unsaved changes. An alert sheet is presented, and
when you click the Don't Save button both the sheet and the window close
simultaneously.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes