NextPrevUpTopContentsIndex

1.2.1 Objective-C pointers and pointer types

Objective-C defines its own memory management, so most interaction with its objects occurs using foreign pointers with the FLI type descriptor objc-object-pointer. When an Objective-C object class is implemented in Lisp, there is an additional object of type standard-objc-object which is associated with the foreign pointer (see Defining Objective-C classes and methods).

There are a few specific Objective-C pointer types that have a direct translation to FLI types:

Pointer types in Objective-C

Objective-C type

FLI type descriptor

Class

objc-class

SEL

sel

id

objc-object-pointer

char *

objc-c-string

Other pointer types are represented using the :pointer FLI type descriptor as normal.


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 4 Apr 2005

NextPrevUpTopContentsIndex