Re: Several sheets at the same time?
Re: Several sheets at the same time?
- Subject: Re: Several sheets at the same time?
- From: j o a r <email@hidden>
- Date: Thu, 23 Aug 2001 10:14:48 +0200
On Wednesday, August 22, 2001, at 10:08 , Mike Davis wrote:
Sheets are modal for a window. This is not the same as a modal dialog,
like in MacOS9. They're not supposed to be either.
MacOSX applications are document centric, not application centric, just
like on NeXTSTEP and non-MDI Windows based applications. The application
menu bar doesn't make much sense anymore.
If you want modal dialogs like in MacOS9, then you do it a different
way.
Sure, but the Aqua Human Interface Guidelines states:
When to Use Sheets (p. 83)
"A modal dialog that is specific to a single-window application that
does not
create documents. A single-window utility program might use a sheet to
request
acceptance of a licensing agreement from the user, for example."
Sheet Behavior(p.83)
"Only one sheet may be open for a window at any one time. A sheet
prevents any
other operation on that window until the sheet is dismissed. If, when
the user
responds to a sheet, another sheet for that document must open, the
first sheet
closes before the second one opens."
These two statements clearly states that the behaviour I experience in
my, "single window, window always present", application is not according
to guidelines. I wonder if it's up to me, or Apple, to handle it?
Closing a Document With Unsaved Changes (p.95)
"When a Save Changes or Save Location sheet is open, the documents
close button
and the Close command in the File menu are unavailable, so that the user
cant close
the document until the save dialog is addressed."
I guess I could emulate the above behaviour by checking for the presence
of sheets in validateMenuItem: and disabling any menu item that could
trigger the opening of a sheet?
I still think that the possibility to present two sheets on one winow is
something that should be removed - it should throw an exception or
something.
Regards,
j o a r