• 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: Sheets to dialogs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sheets to dialogs


  • Subject: Re: Sheets to dialogs
  • From: Adam Leonard <email@hidden>
  • Date: Wed, 4 Jan 2006 19:32:08 -0800

Sheets run in a "modal mode" specifically, a document-modal. The main function of this mode is to ensure that all the events in the application continue running except events relating to the window it is attached to. This is different from a normal alert that *stops* all events in the application except events relating to the alert itself. Search the docs to learn about the specifics, but really, thats about it.

I guess sheets also disable the "quit" menu item, but you probably shouldn't rely on this anyway.

I can't really help you without understanding exactly what this window does. If you want it to act like an alert so the user cannot do anything in the entire application until the window is dismissed, [NSApp runModalForWindow:window]; should work. All events should be processed within the window and everything else should stop

If you want everything in the application to continue running, just open the window like you would normally. Then to disable quit, you probably should implement applicationShouldTerminate: and either bring the window to the front or show an alert informing the user that the window needs attention. Otherwise, there is really nothing special about this.

If you want everything in the application to continue running except one window, then you should use a sheet, as anything else would just be confusing to the user.


I'm sorry if I am not understanding your question, but I hope this helps.



On Jan 4, 2006, at 5:04 PM, John Stiles wrote:

My real concern is this: showing a sheet seems to throw the app into a slightly different "mode," and I don't know 100% what that entails. At the very least, it disables Quit, but it probably does something more than that as well. And rather than guess, I'd like to know exactly what's going on (and if possible, I'd like to just enter that mode). I'm trying to avoid breaking anything that used to work, so the real goal is "minimize changes."




_______________________________________________ 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
  • Follow-Ups:
    • Re: Sheets to dialogs
      • From: John Stiles <email@hidden>
References: 
 >Sheets to dialogs (From: John Stiles <email@hidden>)
 >Re: Sheets to dialogs (From: Adam Leonard <email@hidden>)
 >Re: Sheets to dialogs (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Core Data Binding: Reading a binary image (TIFF) {part deux}
  • Next by Date: Re: Breakpoints in categories are ignored?
  • Previous by thread: Re: Sheets to dialogs
  • Next by thread: Re: Sheets to dialogs
  • Index(es):
    • Date
    • Thread