A class from which the Macintosh application interface should inherit.
A function or
, a menu, or the name of a slot containing a menu in the application interface.
supports application messages and the application menu for a Cocoa application.
should be a function with signature
will be called for various application messages. The
argument will be the application interface and the
argument will be a keyword. The only currently defined message is
. In this case
will contain the name of the file to open. This message is invoked when the user double-clicks on a document associated with the application or drags a document into the application icon.
controls the application's main menu. If this is
, then a minimal application menu will be made using the title of the application interface, otherwise it should be a menu containing the usual items or the name of a slot containing such a menu in the application interface.
interface initargs are interpreted as follows:
is called when the application is activated or deactivated.
is called when the application shuts down.
is called to confirm whether the application should shut down.
The application interface also allows you to control aspects of the application. In particular:
The function destroy will cause the application to shut down.
The function top-level-interface-display-state will return
if the whole application is hidden and will return
can be used to perform some operations typically found on the application menu.
value can one of:
Show the application and activate it
Show the application again without activating it
To make your application use your
, do not display it explicitly, but call set-application-interface.
is implemented only in LispWorks for Macintosh with the Cocoa IDE.
See the examples in
LispWorks CAPI Reference Manual - 25 Jul 2006