Mode 0: closed but loaded
The stack window is closed, but the stack is still in memory. A
stack can have this mode if its destroyStack property is set
to false and the stack has been opened, then closed.
Mode 1: editable window
The stack is open and displayed in an editable window. A stack has
this mode if its style is "topLevel" or if it was opened with
the topLevel command.
Mode 2: non-editable window
The stack is open and displayed in a normal window, but is not
editable. A stack has this mode if its style is "topLevel" or if
it was opened with the topLevel command, and the stack's
cantModify property is set to true.
Mode 3: modeless dialog
The stack is open and displayed as a modeless dialog box. A stack
has this mode if its style is "modeless" or if it was opened
with the modeless command
Mode 4: palette
The stack is open and displayed as a palette. A stack has this
mode if its style is "palette" or if it was opened with the
palette command.
Mode 5: modal dialog
The stack is open and displayed as a modal dialog box. A stack has
this mode if its style is "modal" or if it was opened with the
modal command.
Mode 6: sheet
The stack is open and displayed as a sheet. A stack has this mode
if it was opened with the sheet command. (If the sheet
command was used on a platform other than OS X, the stack is
displayed as a modal dialog box instead of a sheet. In this
case, its mode is 5.)
Mode 7: pulldown stack menu
The stack is open and displayed as a pulldown menu. A stack has this
mode if it was opened with the pulldown command, or if it is
the menuStack of a button whose style is set to "menu" and whose
menuMode is set to pulldown.
Mode 8: popup stack menu
The stack is open and displayed as a popup menu. A stack has
this mode if it was opened with the popup command, or if it is
the menuStack of a button whose style is set to "menu" and whose
menuMode is set to "popup".
Mode 9: option stack menu
The stack is open and displayed as an option menu. A stack has this
mode if it is the menuStack of a button whose style is set to
"menu" and whose menuMode is set to "option".
Mode 10: submenu in a stack menu
The stack is open and displayed as a cascading menu. A stack has
this mode if it is the menuStack of a button whose style is
set to "menu" and whose menuMode is set to "cascade".
Mode 11: combo box stack menu
The stack is open and displayed as a combo box. A stack has this
mode if it is the menuStack of a button whose style is set to
"menu" and whose menuMode is set to "comboBox".
Mode 12: collapsed
The stack is open but has been collapsed (Mac OS), iconified (Unix),
or minimized (Windows).
Mode 13: drawer
The stack is open as a drawer beside another window. A stack has
this mode if it was opened with the drawer command.