MonoTouch.Foundation.NSObject.PerformSelector Method
Invokes the selector on the current instance and if the obj is not null, it passes this as its single parameter.

Syntax

[MonoTouch.Foundation.Export("performSelector:withObject:afterDelay:")]
public virtual void PerformSelector (MonoTouch.ObjCRuntime.Selector selector, NSObject withObject, double delay)

Parameters

selector
Documentation for this section has not yet been entered.
withObject
Documentation for this section has not yet been entered.
delay
The delay in seconds before the method is invoked.

Remarks

c# Example

public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
	window = new UIWindow (UIScreen.MainScreen.Bounds);
	window.MakeKeyAndVisible ();
	// Invoke our method in 10 seconds
	PerformSelector (new MonoTouch.ObjCRuntime.Selector ("demo:"), new NSString ("hello world"), 10);
	return true;
}
// This registers the method "RunDemo" as responding to the selector "demo:"
[Export ("demo:")]
void RunDemo (NSString arg)
{
	Console.WriteLine ("This is the parameter I got {0}", arg);
}

Requirements

Namespace: MonoTouch.Foundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0