All Manuals > CAPI User Guide > 9 Creating Menus

NextPrevUpTopContentsIndex

9.9 The Edit menu on Cocoa

LispWorks now adds a minimal Edit menu to all CAPI interfaces when running in the LispWorks IDE, which makes the edit gestures Command+V , Command+C and Command+X work in every interface displayed in the LispWorks IDE.

However, to implement these gestures in your CAPI/Cocoa runtime application, you must include an Edit menu explicitly in your interface definition, as described in Adding menus.

To remove the automatic menu when running your program in the LispWorks IDE, pass the initarg :auto-menus nil when making the interface.

Note that, in the presence of an application interface (see cocoa-default-application-interface ), a CAPI interface with no menus of its own and with :auto-menus nil uses the menu bar from the application interface.


CAPI User Guide (Macintosh version) - 30 Aug 2011

NextPrevUpTopContentsIndex