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.
|C#||Visual Basic||Visual C++|
- 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.
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)