MonobjcMonobjc Documented Class Library
Invoke Method (method, args)
NamespacesMonobjc.AppKitNSResponderInvoke(Delegate, array<Object>[]()[][])

Executes the delegate on the main thread that this object executes on.

NB: Assumption is made that Objective-C controls have been created on the Main Thread.

Declaration Syntax
C#Visual BasicVisual C++
public Object Invoke(
	Delegate method,
	params Object[] args
Public Function Invoke ( _
	method As Delegate, _
	ParamArray args As Object() _
) As Object
virtual Object^ Invoke(
	Delegate^ method, 
	... array<Object^>^ args
) sealed
method (Delegate)
A Delegate that contains a method to call, in the context of the thread for the control.
args (array<Object>[]()[][])
An array of type Object that represents the arguments to pass to the given method. This can be null if no arguments are needed.
Return Value
An Object that represents the return value from the delegate being invoked, or null if the delegate has no return value.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)