NSObject.PerformSelector NSObject.PerformSelector Method

Definition

Overloads

PerformSelector(Selector) PerformSelector(Selector)
PerformSelector(Selector, NSObject) PerformSelector(Selector, NSObject)
PerformSelector(Selector, NSObject, NSObject) PerformSelector(Selector, NSObject, NSObject)
PerformSelector(Selector, NSObject, Double) PerformSelector(Selector, NSObject, Double)

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

PerformSelector(Selector, NSObject, Double, NSString[]) PerformSelector(Selector, NSObject, Double, NSString[])
PerformSelector(Selector, NSThread, NSObject, Boolean) PerformSelector(Selector, NSThread, NSObject, Boolean)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[])

PerformSelector(Selector) PerformSelector(Selector)

[Foundation.Export("performSelector:")]
public virtual Foundation.NSObject PerformSelector (ObjCRuntime.Selector aSelector);
abstract member PerformSelector : ObjCRuntime.Selector -> Foundation.NSObject
override this.PerformSelector : ObjCRuntime.Selector -> Foundation.NSObject

Parameters

aSelector
Selector Selector

Returns

Implements

PerformSelector(Selector, NSObject) PerformSelector(Selector, NSObject)

[Foundation.Export("performSelector:withObject:")]
public virtual Foundation.NSObject PerformSelector (ObjCRuntime.Selector aSelector, Foundation.NSObject anObject);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject -> Foundation.NSObject
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject -> Foundation.NSObject

Parameters

aSelector
Selector Selector
anObject
NSObject NSObject

Returns

Implements

PerformSelector(Selector, NSObject, NSObject) PerformSelector(Selector, NSObject, NSObject)

[Foundation.Export("performSelector:withObject:withObject:")]
public virtual Foundation.NSObject PerformSelector (ObjCRuntime.Selector aSelector, Foundation.NSObject object1, Foundation.NSObject object2);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * Foundation.NSObject -> Foundation.NSObject
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * Foundation.NSObject -> Foundation.NSObject

Parameters

aSelector
Selector Selector
object1
NSObject NSObject
object2
NSObject NSObject

Returns

Implements

PerformSelector(Selector, NSObject, Double) PerformSelector(Selector, NSObject, Double)

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

[Foundation.Export("performSelector:withObject:afterDelay:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSObject withObject, double delay);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double -> unit

Parameters

selector
Selector Selector
withObject
NSObject NSObject

To be added.

This parameter can be null.

delay
Double Double

The delay in seconds before the method is invoked.

Remarks


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);
}

PerformSelector(Selector, NSObject, Double, NSString[]) PerformSelector(Selector, NSObject, Double, NSString[])

[Foundation.Export("performSelector:withObject:afterDelay:inModes:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSObject withObject, double afterDelay, Foundation.NSString[] nsRunLoopModes);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double * Foundation.NSString[] -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double * Foundation.NSString[] -> unit

Parameters

selector
Selector Selector
withObject
NSObject NSObject

To be added.

This parameter can be null.

afterDelay
Double Double
nsRunLoopModes
NSString[]

PerformSelector(Selector, NSThread, NSObject, Boolean) PerformSelector(Selector, NSThread, NSObject, Boolean)

[Foundation.Export("performSelector:onThread:withObject:waitUntilDone:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSThread onThread, Foundation.NSObject withObject, bool waitUntilDone);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool -> unit

Parameters

selector
Selector Selector
onThread
NSThread NSThread
withObject
NSObject NSObject

To be added.

This parameter can be null.

waitUntilDone
Boolean Boolean

PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[])

[Foundation.Export("performSelector:onThread:withObject:waitUntilDone:modes:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSThread onThread, Foundation.NSObject withObject, bool waitUntilDone, Foundation.NSString[] nsRunLoopModes);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool * Foundation.NSString[] -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool * Foundation.NSString[] -> unit

Parameters

selector
Selector Selector
onThread
NSThread NSThread
withObject
NSObject NSObject

To be added.

This parameter can be null.

waitUntilDone
Boolean Boolean
nsRunLoopModes
NSString[]

Applies to