To create a dialog which is window-modal on Cocoa, call the dialog function inside the macro
as in this example:
(with-dialog-results (symbol okp)
"Enter a class-name symbol:"
:ok-check #'(lambda (symbol)
(find-class symbol nil)))
(capi:display-message "symbol is ~S" symbol)))
On Windows and Motif, this displays the dialog, calls
when the user clicks
, and then returns. The effect is no different to what you saw in Prompting for Lisp objects.
On Cocoa, this creates a sheet and returns.
is called when the user clicks
. The sheet is window-modal, unlike the sheet you saw in Prompting for Lisp objects.
For more details, see the page for
in the LispWorks
CAPI Reference Manual