The following startup function can be used to make LispWorks run as a Cocoa application. Typically, before calling
you would create an application delegate with a method on
to initialize the application's windows.
(defun init-function ()
(let ((app (objc:invoke "NSApplication"
(objc:invoke app "run"))))))
To use this, a bundle must be created, calling
on startup. For example, the following build script will create lw-cocoa-app.app
"configuration/macos-application-bundle.lisp" :load t)
(save-image (when (save-argument-real-p)
See "Saving a LispWorks image" in the LispWorks User Guide and Reference Manual for information on using a build script to create a new LispWorks image.