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.