MonobjcMonobjc Documented Class Library
PerformSelectorWithObjectAfterDelayInModes Method (aSelector, anArgument, delay, modes)
NamespacesMonobjc.FoundationNSObjectPerformSelectorWithObjectAfterDelayInModes(IntPtr, Id, Double, NSArray)

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

Original signature is '- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay inModes:(NSArray *)modes'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void PerformSelectorWithObjectAfterDelayInModes(
	IntPtr aSelector,
	Id anArgument,
	double delay,
	NSArray modes
Public Overridable Sub PerformSelectorWithObjectAfterDelayInModes ( _
	aSelector As IntPtr, _
	anArgument As Id, _
	delay As Double, _
	modes As NSArray _
virtual void PerformSelectorWithObjectAfterDelayInModes(
	IntPtr aSelector, 
	Id^ anArgument, 
	double delay, 
	NSArray^ modes
aSelector (IntPtr)
A selector that identifies the method to invoke. The method should not have a significant return value and should take a single argument of type id, or no arguments.
anArgument (Id)
The argument to pass to the method when it is invoked. Pass nil if the method does not take an argument.
delay (Double)
The minimum time before which the message is sent. Specifying a delay of 0 does not necessarily cause the selector to be performed immediately. The selector is still queued on the thread’s run loop and performed as soon as possible.
modes (NSArray)
An array of strings that identify the modes to associate with the timer that performs the 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)