• 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: Sheet interferes with close widget and app quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sheet interferes with close widget and app quit


  • Subject: Re: Sheet interferes with close widget and app quit
  • From: "David P. Henderson" <email@hidden>
  • Date: Mon, 20 Aug 2001 19:09:05 -0400

On Monday, August 20, 2001, at 01:49 , Adam Iser wrote:

> I've got a single window application that connects to a remote server.
> When the application loads, I slide out a sheet on my main window
> asking for name and password. At this point, I'd like the user to
> still be able to hide the window (by closing it) and quit my
> application (with the quit menu item), without having to dismiss the
> sheet first.
>
> Unfortunately the sheet "automatically" disables my window's close
> widget... how annoying! ;) And when the sheet is displayed, quitting
> my app (Apple-Q) only produces and alert Beep... equally annoying.
>
> Is there a simple solution to either of these problems?
>
Yes. Don't use a sheet or any other modal dialog. Sheets are just modal
dialogs attached to a specific window instance. The idea behind sheets
is to present a per window based modal mechanism such that the user may
continue working with other windows in the application while ignoring
the modal dialog. This mechanism is most useful in the context of
multiple document application architectures, for example processors or
image editors.

Dave
--
Chaos Assembly Werks
"A lie can run around the world before the truth can get its boots on."
- Israel Zangwill (not Edward R. Murrow)


References: 
 >Sheet interferes with close widget and app quit (From: Adam Iser <email@hidden>)

  • Prev by Date: Re: I'll Bite
  • Next by Date: Re: WTF? How can this work?
  • Previous by thread: Re: Sheet interferes with close widget and app quit
  • Next by thread: Re: Sheet interferes with close widget and app quit
  • Index(es):
    • Date
    • Thread