Prompts the user to select an item or items from a choice.
A class name.
A function, or
Arguments to pass to the pane.
Arguments to pass to the confirmer.
A function or
prompts the user with a choice. The user's selection is normally returned by the prompter.
items supplies the items of the choice.
message supplies a title for the choice.
determines the interaction style of the choice in the dialog. By default
. For single selection, the dialog has an
button, while for other selection styles it has
means accept the selection,
means accept a null selection and
behaves as normal.
The primary returned value is usually the selected items, but a
can be supplied that gets passed the result and can then return a new result. If
(this is the default), then
is simply the selection.
, then it must be a function with a lambda list that accepts two arguments. The
function is called with the values that would normally be returned by
. On Cocoa, passing
causes the dialog to be made as a window-modal sheet and
returns immediately, leaving the dialog on the screen. The with-dialog-results macro provides a convenient way to create a
The prompter is created by passing an appropriate pane (in this case an instance of class
) to popup-confirmer. Arguments can be passed to the
of the pane and the call to popup-confirmer using
respectively. The initial selection can be specified using choice initargs