objc_setEnumerationMutationHandler
E782293
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.
All labels observed (1)
| Label | Occurrences |
|---|---|
| objc_setEnumerationMutationHandler canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T9175973 — 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: objc_setEnumerationMutationHandler Context triple: [Objective-C runtime, providesAPI, objc_setEnumerationMutationHandler]
-
A.
Objective-C runtime
Objective-C runtime is the dynamic library and infrastructure that enables Objective-C’s message passing, dynamic typing, and introspection features at program execution time.
-
B.
Key-Value Observing
Key-Value Observing is an Objective-C and Swift mechanism that lets objects be notified and react when specific properties of other objects change.
-
C.
GNUStep Objective-C runtime extensions
GNUStep Objective-C runtime extensions are enhancements to the Objective-C runtime developed by the GNUstep project, adding advanced features such as improved reflection, dynamic loading, and language interoperability beyond the standard Objective-C runtime.
-
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.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: objc_setEnumerationMutationHandler Target entity description: 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.
-
A.
Objective-C runtime
Objective-C runtime is the dynamic library and infrastructure that enables Objective-C’s message passing, dynamic typing, and introspection features at program execution time.
-
B.
Key-Value Observing
Key-Value Observing is an Objective-C and Swift mechanism that lets objects be notified and react when specific properties of other objects change.
-
C.
GNUStep Objective-C runtime extensions
GNUStep Objective-C runtime extensions are enhancements to the Objective-C runtime developed by the GNUstep project, adding advanced features such as improved reflection, dynamic loading, and language interoperability beyond the standard Objective-C runtime.
-
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.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
- F. None of above. chosen
Statements (43)
| Predicate | Object |
|---|---|
| instanceOf | Objective-C runtime function ⓘ |
| availability |
iOS
NERFINISHED
ⓘ
macOS NERFINISHED ⓘ tvOS NERFINISHED ⓘ watchOS NERFINISHED ⓘ |
| callingConvention | C ⓘ |
| canBeUsedTo |
abort process on mutation for debugging
ⓘ
log mutations instead of throwing exception ⓘ set breakpoint on mutation events ⓘ |
| category |
debugging API
ⓘ
runtime configuration API ⓘ |
| declaredInHeader | objc/runtime.h ⓘ |
| defaultBehavior | without custom handler, runtime raises mutation exception ⓘ |
| definedIn | Objective-C runtime NERFINISHED ⓘ |
| documentation | Apple Developer Documentation for Objective-C Runtime Reference NERFINISHED ⓘ |
| effect | sets global enumeration mutation handler ⓘ |
| errorCondition | mutated while being enumerated ⓘ |
| introducedBy | Apple NERFINISHED ⓘ |
| language | Objective-C NERFINISHED ⓘ |
| linkage | extern "C" ⓘ |
| module | libobjc NERFINISHED ⓘ |
| namespace | global C namespace ⓘ |
| parameter | void (*handler)(id, SEL, id) ⓘ |
| parameterRole | mutation handler callback ⓘ |
| parameterType | function pointer ⓘ |
| purpose | install custom handler for collection mutation during fast enumeration ⓘ |
| relatedConcept |
NSFastEnumeration
NERFINISHED
ⓘ
fast enumeration ⓘ |
| relatedFunction | objc_enumerationMutation ⓘ |
| relatedType |
NSArray
NERFINISHED
ⓘ
NSDictionary NERFINISHED ⓘ NSSet NERFINISHED ⓘ Objective-C collection classes NERFINISHED ⓘ |
| returnType | void ⓘ |
| scope | process-wide ⓘ |
| sideEffect | changes behavior when a collection is mutated during fast enumeration ⓘ |
| threadSafety | global handler affects all threads in process ⓘ |
| triggerCondition | mutation of a collection being fast-enumerated ⓘ |
| usagePattern | typically called early in application startup ⓘ |
| usedFor |
custom handling of mutation during NSFastEnumeration
ⓘ
debugging fast enumeration mutation errors ⓘ detecting mutations of collections during fast enumeration ⓘ |
| warning | custom handler must be reentrant and signal-safe if used in production ⓘ |
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: objc_setEnumerationMutationHandler Description of subject: 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.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.