NSFastEnumeration
E820424
NSFastEnumeration is an Objective-C protocol that enables efficient, fast enumeration of collections using the for-in syntax.
All labels observed (1)
| Label | Occurrences |
|---|---|
| NSFastEnumeration canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T9761623 — 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.
NED1
Entity disambiguation (via context triple)
gpt-5-mini-2025-08-07
Target entity: NSFastEnumeration Context triple: [NSSet, conformsToProtocol, NSFastEnumeration]
-
A.
objc_setEnumerationMutationHandler
objc_setEnumerationMutationHandler is an Objective-C runtime function that lets you install a custom handler to be called when a collection is mutated during fast enumeration.
-
B.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
-
C.
NSAutoreleasePool
NSAutoreleasePool is an Objective-C Foundation class that manages the deferred release of objects in manual reference-counted memory management.
-
D.
NSObject
NSObject is the root base class in Objective-C from which most classes in Cocoa and Cocoa Touch inherit, providing fundamental object behavior such as memory management and message sending.
-
E.
RandomAccessCollection
RandomAccessCollection is a Swift protocol for collections that support efficient, index-based random access to their elements in constant time.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
NED2
Entity disambiguation (via description)
gpt-5-mini-2025-08-07
Target entity: NSFastEnumeration Target entity description: NSFastEnumeration is an Objective-C protocol that enables efficient, fast enumeration of collections using the for-in syntax.
-
A.
objc_setEnumerationMutationHandler
objc_setEnumerationMutationHandler is an Objective-C runtime function that lets you install a custom handler to be called when a collection is mutated during fast enumeration.
-
B.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
-
C.
NSAutoreleasePool
NSAutoreleasePool is an Objective-C Foundation class that manages the deferred release of objects in manual reference-counted memory management.
-
D.
NSObject
NSObject is the root base class in Objective-C from which most classes in Cocoa and Cocoa Touch inherit, providing fundamental object behavior such as memory management and message sending.
-
E.
RandomAccessCollection
RandomAccessCollection is a Swift protocol for collections that support efficient, index-based random access to their elements in constant time.
- F. None of above. chosen
Statements (50)
| Predicate | Object |
|---|---|
| instanceOf | Objective-C protocol ⓘ |
| availableOn |
iOS
NERFINISHED
ⓘ
macOS NERFINISHED ⓘ tvOS NERFINISHED ⓘ watchOS NERFINISHED ⓘ |
| belongsToFramework | Foundation framework NERFINISHED ⓘ |
| category | collection enumeration ⓘ |
| conformanceRequiredFor | use in fast enumeration for-in loops ⓘ |
| declaredInHeader | Foundation headers ⓘ |
| definedInLanguage | Objective-C NERFINISHED ⓘ |
| designGoal |
improve performance of collection iteration
ⓘ
simplify enumeration syntax ⓘ |
| enablesPattern | for (id obj in collection) syntax ⓘ |
| errorCondition | mutation during enumeration may raise exception ⓘ |
| hasRequiredMethod | countByEnumeratingWithState:objects:count: GENERATED ⓘ |
| hasStruct | NSFastEnumerationState NERFINISHED ⓘ |
| introducedFor | efficient iteration over collections ⓘ |
| iterationOrder | defined by the conforming collection ⓘ |
| languageFeatureType | runtime protocol ⓘ |
| memoryManagementModel | ARC-compatible ⓘ |
| methodReturnType | NSUInteger for countByEnumeratingWithState:objects:count: ⓘ |
| NSFastEnumerationStateField |
id __unsafe_unretained *itemsPtr
ⓘ
unsigned long *mutationsPtr ⓘ unsigned long extra[5] ⓘ unsigned long state ⓘ |
| primaryPurpose | enable fast enumeration of collections ⓘ |
| relatedTo | NSEnumerator NERFINISHED ⓘ |
| supportsFeature |
batched retrieval of items
ⓘ
fast iteration compared to NSEnumerator ⓘ mutation detection during enumeration ⓘ |
| supportsSyntax | for-in loop syntax ⓘ |
| supportsType | any object conforming to NSFastEnumeration ⓘ |
| usedBy |
NSArray
NERFINISHED
ⓘ
NSCountedSet NERFINISHED ⓘ NSDictionary ⓘ NSHashTable NERFINISHED ⓘ NSIndexSet NERFINISHED ⓘ NSMapTable NERFINISHED ⓘ NSMutableArray NERFINISHED ⓘ NSMutableDictionary NERFINISHED ⓘ NSMutableSet NERFINISHED ⓘ NSOrderedSet NERFINISHED ⓘ NSPointerArray NERFINISHED ⓘ NSSet ⓘ |
| usedIn |
Cocoa
NERFINISHED
ⓘ
Cocoa Touch NERFINISHED ⓘ |
| usedWith | Objective-C for-in loop ⓘ |
| usesParameter |
NSFastEnumerationState * for countByEnumeratingWithState:objects:count:
ⓘ
NSUInteger len for countByEnumeratingWithState:objects:count: ⓘ id __unsafe_unretained[] buffer for countByEnumeratingWithState:objects:count: ⓘ |
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.
Instruction
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.
Input
Subject: NSFastEnumeration Description of subject: NSFastEnumeration is an Objective-C protocol that enables efficient, fast enumeration of collections using the for-in syntax.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.