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

invoke-bool Function

Summary

Invokes an Objective-C method that returns a BOOL.

Package

objc

Signature

invoke-bool class-or-object-pointer method &rest args => value

Arguments
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.
Values
value
The value returned by the method.
Description

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.

See also

invoke
invoke-into


LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual - 01 Dec 2021 19:38:32