Instance Property

currentMode

The receiver's current input mode.

Declaration

@property(readonly, copy) NSRunLoopMode currentMode;

Discussion

The receiver's current input mode. This method returns the current input mode only while the receiver is running; otherwise, it returns nil.

The current mode is set by the methods that run the run loop, such as acceptInputForMode:beforeDate: and runMode:beforeDate:.

See Also

Accessing Run Loops and Modes

currentRunLoop

Returns the run loop for the current thread.

- limitDateForMode:

Performs one pass through the run loop in the specified mode and returns the date at which the next timer is scheduled to fire.

mainRunLoop

Returns the run loop of the main thread.

- getCFRunLoop

Returns the receiver's underlying CFRunLoop object.