Invokes an Objective-C method that returns a specific type or fills a specific object.
objc
invoke-into result class-or-object-pointer method &rest args => value
result⇩ |
A symbol or list naming the return type or an object to contain the returned value. |
class-or-object-pointer⇩ | |
A string naming an Objective-C class, a pointer to an Objective-C foreign object or the result of calling current-super. | |
method⇩ |
A string naming the method to invoke or a list as specified by invoke. |
args⇩ |
Arguments to the method. |
value |
The value returned by the method. |
The function invoke-into
is used to call Objective-C instance and class methods that return specific types which are not supported directly by invoke or for methods that return values of some foreign structure type where an existing object should be filled with the value. The meaning of class-or-object-pointer, method and args is identical to invoke.
The value of result controls how the value of the method is converted and returned as follows:
the symbol string | |
the symbol array | |
a list of the form (array elt-type) | |
If the result type of the method is Otherwise no special conversion is performed. | |
the symbol :pointer |
If the result type of the method is Otherwise no special conversion is performed. |
a list of the form (:pointer elt-type) | |
If the result type of the method is Otherwise no special conversion is performed. | |
If the result type of the method is a foreign structure type defined with define-objc-struct or a built-in structure type such as | |
an object of type vector | |
If the result type of the method is
If the result type of the method is Otherwise no special conversion is performed. | |
an object of type cons | |
LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:32