MonobjcMonobjc Documented Class Library
PerformSelectorWithObjectAfterDelay Method (aSelector, anArgument, delay)
NamespacesMonobjc.FoundationNSObjectPerformSelectorWithObjectAfterDelay(IntPtr, Id, Double)

Invokes a method of the receiver on the current thread using the default mode after a delay.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void PerformSelectorWithObjectAfterDelay(
	IntPtr aSelector,
	Id anArgument,
	double delay
Public Overridable Sub PerformSelectorWithObjectAfterDelay ( _
	aSelector As IntPtr, _
	anArgument As Id, _
	delay As Double _
virtual void PerformSelectorWithObjectAfterDelay(
	IntPtr aSelector, 
	Id^ anArgument, 
	double delay
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.
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)