All Manuals > LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual > 2 Objective-C Reference

ensure-objc-initialized Function

Summary

Initializes the Objective-C system if required.

Package

objc

Signature

ensure-objc-initialized &key modules

Arguments
modules
A list of strings.
Description

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