RBCocoaObject.Invoke
From Xojo Documentation
Method
This method is only available on the macOS platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform. |
RBCocoaObject.Invoke(nameOfSelector As String, ParamArray Parameters() As Variant) As Variant
New in 2010r3
Supported for all project types and targets.
New in 2010r3
Supported for all project types and targets.
Calls a selector (a.k.a. method) of a RBCocoaObject.
Notes
Selector is the name of the selector you want to call. Parameters is a variable number of parameters depending on what the selector needs. If something is returned, it will be a Variant. However, not all calls return a value.