CFRunLoop.AddSource(CFRunLoopSource, NSString) Method

Definition

Adds a new source to the run loop on the specified mode.

public void AddSource (CoreFoundation.CFRunLoopSource source, Foundation.NSString mode);
member this.AddSource : CoreFoundation.CFRunLoopSource * Foundation.NSString -> unit

Parameters

source
CFRunLoopSource

Source to be added.

mode
NSString

The mode to add the source to.  If you use P:CoreFoundation.CFRunLoop.CommonModes the source is added to all common modes.

Applies to