Displays a message dialog, allowing it to be a window-modal sheet on Cocoa.
capi
prompt-with-message message &key owner continuation
message⇩ |
A string. |
owner⇩ |
An owner window, or nil . |
continuation⇩ |
A function or nil . |
The function prompt-with-message
displays message in a dialog owned by owner.
If continuation is non-nil, then it must be a function with a lambda list that accepts two arguments. continuation is called with the values that would normally be returned by prompt-with-message
. On Cocoa, passing continuation causes the dialog to be made as a window-modal sheet and prompt-with-message
returns immediately, leaving the dialog on the screen. The with-dialog-results macro provides a convenient way to create a continuation function.
(capi:prompt-with-message "No items were deleted.")
CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27