prompts the user for a string and returns that string in
and a flag
indicating that the dialog was not cancelled. The initial string can either be supplied directly as a string using the
argument, or by passing
for that value.
. The value returned can be converted into a different value by passing a
, which by default is the identity function. This
gets passed the text that was entered into the pane, and should return both the value to return and a flag that should be non-nil if the value that was entered is not acceptable. If an
is passed, then it should return non-nil if the value about to be returned is acceptable.
creates an instance of text-input-pane or text-input-choice depending on the value of
. Arguments can be passed to the
of this pane using
then passes this pane to popup-confirmer. Arguments can be passed to the call to popup-confirmer using
history-function is called with no argument to obtain the history which is used as the items of the text-input-choice, and with the latest input to update the history.
is non-nil, 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
(capi:prompt-for-string "Enter a string:")