with-busy-interface switches the cursor of the interface containing
to be the busy cursor, evaluates
, and then restores the cursor. This is useful when a piece of code may take significant time to run, and visual feedback should be provided.
specifies the cursor to use while
is running. The default value is
:busy. For other allowed values, see simple-pane.
delay specifies a time in seconds before the cursor is switched, so if body runs in less than delay seconds, then the cursor is not switched at all. This is usually more useful behavior than switching the cursor immediately. The default value of delay is 0.5.
CAPI User Guide and Reference Manual (Macintosh version) - 25 Feb 2015