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

NextPrevUpTopContentsIndex

objc-object-pointer

Function
Summary

Returns the Objective-C foreign pointer associated with a given Lisp object.

Package

objc

Signature

objc-object-pointer object-or-class => pointer

Arguments

object-or-class

An instance of standard-objc-object or a class defined by define-objc-class .

Values

pointer

A pointer to an Objective-C foreign object or class.

Description

The function objc-object-pointer returns the Objective-C foreign pointer associated with a given Lisp object. If object is an instance of standard-objc-object then pointer will have foreign type objc-object-pointer. Otherwise, object should be a class defined by define-objc-class and the associated Objective-C class object is returned as a foreign pointer of type objc-class.

Note that for a given returned pointer , the value of the form

(objc-object-from-pointer pointer )

is object-or-class .

See also

standard-objc-object
define-objc-class
objc-object-pointer
objc-class
objc-object-from-pointer


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex