Language

CFMessagePort.CreateRunLoopSource Method

Definition

Creates a run loop source that delivers messages to this local port.

public CoreFoundation.CFRunLoopSource CreateRunLoopSource();
member this.CreateRunLoopSource : unit -> CoreFoundation.CFRunLoopSource

Returns

A new run loop source that has not yet been added to a run loop.

Remarks

Add the returned source to a run loop with AddSource(CFRunLoopSource, NSString). A port cannot use both a run loop source and a dispatch queue.

Applies to