All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

NextPrevUpTopContentsIndex

prompt-with-message

Function
Summary

Displays a message dialog, allowing it to be a window-modal sheet on Cocoa.

Package

capi

Signature

prompt-with-message message &key owner continuation

Arguments

message

A string.

owner

An owner window, or nil.

continuation

A function or nil.

Description

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. The continuation function 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.

Example
(capi:prompt-with-message
  "No items were deleted.")
See also

display-message-for-pane
display-message


CAPI User Guide and Reference Manual (Macintosh version) - 3 Aug 2017

NextPrevUpTopContentsIndex