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 (1)
| Label | Occurrences |
|---|---|
| NSRunLoop canonical | 2 |
How this entity was disambiguated
This entity first appeared as the object of triple T9761881 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: NSRunLoop Context triple: [NSAutoreleasePool, relatedConcept, NSRunLoop]
-
A.
NSAutoreleasePool
NSAutoreleasePool is an Objective-C Foundation class that manages the deferred release of objects in manual reference-counted memory management.
-
B.
NSOperationQueue
NSOperationQueue is a Foundation framework class that manages the scheduling and concurrent execution of NSOperation tasks in an organized queue.
-
C.
Grand Central Dispatch
Grand Central Dispatch is Apple's low-level concurrency and task scheduling framework used to efficiently manage parallel execution of code on macOS, iOS, and other Darwin-based systems.
-
D.
Cocoa Touch
Cocoa Touch is Apple’s application development framework for building iOS and other mobile OS apps, providing the UI components, event handling, and infrastructure layers on top of the underlying operating system.
-
E.
CoreMotion
CoreMotion is an Apple framework that provides access to motion and fitness data from device sensors such as accelerometers and gyroscopes.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: NSRunLoop Target entity description: 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.
-
A.
NSAutoreleasePool
NSAutoreleasePool is an Objective-C Foundation class that manages the deferred release of objects in manual reference-counted memory management.
-
B.
NSOperationQueue
NSOperationQueue is a Foundation framework class that manages the scheduling and concurrent execution of NSOperation tasks in an organized queue.
-
C.
Grand Central Dispatch
Grand Central Dispatch is Apple's low-level concurrency and task scheduling framework used to efficiently manage parallel execution of code on macOS, iOS, and other Darwin-based systems.
-
D.
Cocoa Touch
Cocoa Touch is Apple’s application development framework for building iOS and other mobile OS apps, providing the UI components, event handling, and infrastructure layers on top of the underlying operating system.
-
E.
CoreMotion
CoreMotion is an Apple framework that provides access to motion and fitness data from device sensors such as accelerometers and gyroscopes.
- F. None of above. chosen
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 ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: NSRunLoop Description of subject: 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.
Referenced by (2)
Full triples — surface form annotated when it differs from this entity's canonical label.