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

NextPrevUpTopContentsIndex

objc-object-from-pointer

Function
Summary

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

Package

objc

Signature

objc-object-from-pointer pointer => object

Arguments

pointer

A pointer to an Objective-C foreign object.

Values

object

The Lisp object associated with pointer.

Description

The function objc-object-from-pointer returns the Lisp object object associated with the Objective-C foreign object referenced by pointer. For an Objective-C instance, object is of type standard-objc-object and for an Objective-C class it is the standard-class that was defined by define-objc-class.

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

(objc-object-pointer object)

has the same address as pointer.

See also

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


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

NextPrevUpTopContentsIndex