runLoopModes
The modes governing the types of input to handle during a cycle of the run loop.
Declaration
var runLoopModes: [RunLoop.Mode] { get set }Discussion
An array of string constants specifying the current run-loop modes.
By default, the sole run-loop mode is NSDefaultRunLoopMode (which excludes data from NSConnection objects). Some examples of other uses are to limit the input to data received during a mouse-tracking session by setting the mode to NSEventTrackingRunLoopMode, or limit it to data received from a modal panel with NSModalPanelRunLoopMode.