NSRunLoop

E820441

NSRunLoop is a Core Foundation and Cocoa class that manages event processing loops for threads, scheduling input sources and timers so an application can respond to user actions and system events.

Try in SPARQL Jump to: Statements Referenced by

Statements (48)

Predicate Object
instanceOf Foundation class
run loop abstraction
availability available in AppKit-based and UIKit-based applications
bridgedWith CFRunLoopRef NERFINISHED
category event handling
thread management
commonModeName NSDefaultRunLoopMode
NSRunLoopCommonModes NERFINISHED
concept run loop mode filters which input sources and timers are processed
design object-oriented wrapper around CFRunLoop
documentationURL https://developer.apple.com/documentation/foundation/nsrunloop
framework Foundation NERFINISHED
language Objective-C NERFINISHED
Swift NERFINISHED
mainUsage used to manage the main thread event loop
memoryManagement follows Objective-C reference counting conventions
method + currentRunLoop
+ mainRunLoop
- addInputSource:mode:
- addPort:forMode:
- addTimer:forMode:
- getCFRunLoop
- limitDateForMode:
- run
- runMode:beforeDate:
platform iOS
macOS
tvOS NERFINISHED
watchOS NERFINISHED
relatedFramework Core Foundation NERFINISHED
responsibility manages event processing loops for threads
processes events so applications can respond to user actions
processes system events
schedules input sources
schedules timers
supports NSPort-based input sources
NSTimer scheduling
custom input sources
run loop modes
threadAssociation each thread may have its own NSRunLoop
threadingModel run loop is not thread-safe and must be used on its associated thread
usagePattern accessed via class methods to get existing run loops
typically not created directly by developers
usedFor handling network events
handling port-based communication
handling user input events
integrating with system event sources
scheduling periodic tasks via timers

Referenced by (2)

Full triples — surface form annotated when it differs from this entity's canonical label.

Foundation includesType NSRunLoop