prompt-for-directory message &key if-does-not-exist pathname pane-args popup-args owner continuation => result, successp
A pathname, or
Arguments to pass to the pane.
Arguments to pass to the confirmer.
An owner window.
A function or
prompts the user for a directory pathname using a dialog box. Like all the prompters,
returns two values: the directory pathname and a flag indicating success. The
flag will be
if the dialog was cancelled, and
, a non-existent directory can be chosen. When set to
, if a non-existent directory is chosen, the user is prompted for whether the directory should be created. When set to
, the user cannot choose a non existent directory. The default value of
, 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 prompt itself is created by passing an appropriate pane to popup-confirmer. Arguments can be passed to the
of the pane and the call to popup-confirmer using
respectively. Currently, the pane used to create the file prompter is internal to the CAPI.