MonobjcMonobjc Documented Class Library
PerformSelectorOnThreadWithObjectWaitUntilDoneModes Method (aSelector, thr, arg, wait, array)
NamespacesMonobjc.FoundationNSObjectPerformSelectorOnThreadWithObjectWaitUntilDoneModes(IntPtr, NSThread, Id, Boolean, NSArray)

Invokes a method of the receiver on the specified thread using the specified modes.

Original signature is '- (void)performSelector:(SEL)aSelector onThread:(NSThread *)thr withObject:(id)arg waitUntilDone:(BOOL)wait modes:(NSArray *)array'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void PerformSelectorOnThreadWithObjectWaitUntilDoneModes(
	IntPtr aSelector,
	NSThread thr,
	Id arg,
	bool wait,
	NSArray array
)
Public Overridable Sub PerformSelectorOnThreadWithObjectWaitUntilDoneModes ( _
	aSelector As IntPtr, _
	thr As NSThread, _
	arg As Id, _
	wait As Boolean, _
	array As NSArray _
)
public:
virtual void PerformSelectorOnThreadWithObjectWaitUntilDoneModes(
	IntPtr aSelector, 
	NSThread^ thr, 
	Id^ arg, 
	bool wait, 
	NSArray^ array
)
Parameters
aSelector (IntPtr)
A selector that identifies the method to invoke. It should not have a significant return value and should take a single argument of type id, or no arguments.
thr (NSThread)
The thread on which to execute aSelector. This thread represents the target thread.
arg (Id)
The argument to pass to the method when it is invoked. Pass nil if the method does not take an argument.
wait (Boolean)
A Boolean that specifies whether the current thread blocks until after the specified selector is performed on the receiver on the specified thread. Specify YES to block this thread; otherwise, specify NO to have this method return immediately.
array (NSArray)
An array of strings that identifies the modes in which it is permissible to perform the specified selector. This array must contain at least one string. If you specify nil or an empty array for this parameter, this method returns without performing the specified selector.
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.Foundation (Module: Monobjc.Foundation)