The application menu's quit callback (that is, the callback normally invoked by
Command+Q
) should simply call
capi:destroy
with the application interface and should not call
lw:quit
directly.
For an example see the
Quit My Application Full
menu item in
examples/capi/cocoa-application.lisp
.