The programmatic interface to objects that manage input sources.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Your application neither creates or explicitly manages
Run objects. Each
Thread object—including the application’s main thread—has an
Run object automatically created for it as needed. If you need to access the current thread’s run loop, you do so with the class method
Note that from the perspective of
Timer objects are not "input"—they are a special type, and one of the things that means is that they do not cause the run loop to return when they fire.