Contents (package MULK.OBJECTIVE-CL)


Function INITIALISE-RUNTIME

Purpose:

Initialise the Objective-C runtime.

Syntax:

initialise-runtime

Description:

The function initialise-runtime makes all the necessary arrangements for object instantiation and method calls to work. In particular, it creates an autorelease pool in order to make the use of Objective-C's semiautomatic reference counting memory management possible, which is used internally by Objective-CL.

Note that, as the autorelease pool created by initialise-runtime is currently only deallocated and its containees released when shutdown-runtime is called, it is generally advisable to make use of AppKit's automatic creation and deletion auf autorelease pools, if possible. Naturally, AppKit-based applications need not worry about this, but be aware that they do need to call initialise-runtime before making any other Objective-C calls.

See also:

shutdown-runtime