編集

次の方法で共有


CFRunLoop Class

Definition

Main loop implementation for Cocoa and CocoaTouch applications.

public class CFRunLoop : IDisposable, ObjCRuntime.INativeObject
type CFRunLoop = class
    interface INativeObject
    interface IDisposable
Inheritance
CFRunLoop
Implements

Remarks

Run loops can be executed recursively.

Properties

Current

Active runloop for the current thread.

Handle

Handle (pointer) to the unmanaged object representation.

IsWaiting

Indicates that the run loop is currently waiting for an event.

Main

Main run loop object for the application.

ModeCommon

Represents the value associated with the constant kCFRunLoopCommonModes

ModeDefault

Represents the value associated with the constant kCFRunLoopDefaultMode

Methods

AddSource(CFRunLoopSource, NSString)

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

ContainsSource(CFRunLoopSource, NSString)

Determines whether the run loop contains the specified CFRunLoopSource on a specific mode.

Dispose()

Releases the resources used by the CFRunLoop object.

Dispose(Boolean)

Releases the resources used by the CFRunLoop object.

Equals(Object)
Finalize()

Finalizer for the CFRunLoop object

GetHashCode()
RemoveSource(CFRunLoopSource, NSString)

Removes a source from the runloop.

Run()

Starts the CFRunLoop for the current thread.

RunInMode(NSString, Double, Boolean)

Initiates the runloop for a a particular duration of time.

Stop()

Stops execution of this runloop.

WakeUp()

Wakes up a sleeping runloop.

Operators

Equality(CFRunLoop, CFRunLoop)

Compares two managed CFRunLoops for equality, based on whether they share the same native handle.

Inequality(CFRunLoop, CFRunLoop)

Compares two managed CFRunLoops for inequality, based on whether they share the same native handle.

Applies to

See also