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

NextPrevUpTopContentsIndex

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.

The modules argument 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.


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 15 Feb 2015

NextPrevUpTopContentsIndex