Invokes an Objective-C method that returns a BOOL
.
objc
invoke-bool class-or-object-pointer method &rest args => 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-bool
is used to call Objective-C instance and class methods that return the type BOOL
. It behaves identically to invoke, except that if the return value is NO
then nil
is returned, otherwise t
is returned. The meaning of class-or-object-pointer, method and args is identical to invoke.
LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:32