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

public virtual void PerformSelector (MonoTouch.ObjCRuntime.Selector sel, NSObject obj, float delay)

Parameters

sel
The selector to invoke on the current object.
obj
Parameter to pass to the method, or null if the method does not take any arguments.
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