Initializes the Objective-C system if required.
objc
ensure-objc-initialized &key modules
modules⇩ |
A list of strings. |
The function ensure-objc-initialized
must be called before any other functions in the objc
package to initialize the Objective-C system. It is safe to use the defining macros such as define-objc-class and define-objc-method before calling ensure-objc-initialized
.
modules can be a list of strings specifying foreign modules to load. Typically, this needs to be the paths to the Cocoa .dylib
files to make Objective-C work. See fli:register-module.
Note: Do not call ensure-objc-initialized
in a LispWorks for iOS Runtime application, because this has already been done by LispWorks when the application starts.
LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:32