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.

All labels observed (2)

Label Occurrences
NSRunLoop canonical 2
CFRunLoopRef 1

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Foundation class ⓘ
run loop abstraction ⓘ
availability available in AppKit-based and UIKit-based applications ⓘ
bridgedWith CFRunLoopRef ⓘ
linked to: NSRunLoop
category event handling ⓘ
thread management ⓘ
commonModeName NSDefaultRunLoopMode ⓘ
NSRunLoopCommonModes ⓘ
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 ⓘ
language Objective-C ⓘ
Swift ⓘ
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 ⓘ
watchOS ⓘ
relatedFramework Core Foundation ⓘ
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 ⓘ

How these facts were elicited

Referenced by (3)

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

Foundation → includesType → NSRunLoop ⓘ
NSRunLoop → bridgedWith → CFRunLoopRef ⓘ
linked to: NSRunLoop