NSCoding
E820430
NSCoding is an Objective-C protocol in Apple’s frameworks that defines methods for encoding and decoding objects so they can be serialized and later reconstructed.
All labels observed (1)
| Label | Occurrences |
|---|---|
| NSCoding canonical | 2 |
How this entity was disambiguated
This entity first appeared as the object of triple T9761724 — 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: NSCoding Context triple: [NSDate, conformsTo, NSCoding]
-
A.
NSCoder
NSCoder is an abstract class in Apple’s Foundation framework that provides an interface for encoding and decoding objects and values for archiving and serialization.
-
B.
NSData
NSData is a fundamental Objective-C class in Apple’s Foundation framework that represents immutable raw binary data.
-
C.
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.
-
D.
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.
-
E.
NSString
NSString is an Objective-C class representing immutable Unicode strings, widely used as the primary string type in Apple’s Cocoa and Cocoa Touch frameworks.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: NSCoding Target entity description: NSCoding is an Objective-C protocol in Apple’s frameworks that defines methods for encoding and decoding objects so they can be serialized and later reconstructed.
-
A.
NSCoder
NSCoder is an abstract class in Apple’s Foundation framework that provides an interface for encoding and decoding objects and values for archiving and serialization.
-
B.
NSData
NSData is a fundamental Objective-C class in Apple’s Foundation framework that represents immutable raw binary data.
-
C.
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.
-
D.
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.
-
E.
NSString
NSString is an Objective-C class representing immutable Unicode strings, widely used as the primary string type in Apple’s Cocoa and Cocoa Touch frameworks.
- F. None of above. chosen
Statements (47)
| Predicate | Object |
|---|---|
| instanceOf |
Objective-C protocol
ⓘ
serialization protocol ⓘ |
| availableOnPlatform |
iOS
NERFINISHED
ⓘ
iPadOS NERFINISHED ⓘ macOS NERFINISHED ⓘ tvOS NERFINISHED ⓘ watchOS NERFINISHED ⓘ |
| backwardCompatibility | supports older archive formats ⓘ |
| belongsToFrameworkFamily | Foundation framework NERFINISHED ⓘ |
| decodingAbstraction | NSCoder ⓘ |
| definedInLanguage | Objective-C NERFINISHED ⓘ |
| designPattern | coder pattern ⓘ |
| documentationURL | https://developer.apple.com/documentation/foundation/nscoding ⓘ |
| encodingAbstraction | NSCoder ⓘ |
| forwardCompatibility | can ignore unknown keys when decoding ⓘ |
| frameworkVendor | Apple Inc. NERFINISHED ⓘ |
| methodRequirement |
-encodeWithCoder:
ⓘ
-initWithCoder: ⓘ |
| partOfEcosystem |
Cocoa
NERFINISHED
ⓘ
Cocoa Touch NERFINISHED ⓘ |
| primaryPurpose |
object deserialization
ⓘ
object serialization ⓘ |
| recommendedUsage | use NSSecureCoding when possible ⓘ |
| relatedTo |
NSCoder
NERFINISHED
ⓘ
NSKeyedArchiver NERFINISHED ⓘ NSKeyedUnarchiver NERFINISHED ⓘ NSSecureCoding NERFINISHED ⓘ |
| requiresConformance | NSObject subclasses (typical) ⓘ |
| requiresImplementationDetail |
decode and initialize object state in -initWithCoder:
ⓘ
encode all properties needed to reconstruct the object ⓘ |
| securityCharacteristic | not secure against object substitution attacks ⓘ |
| serializationFormat |
keyed archiving
ⓘ
unkeyed archiving (legacy) ⓘ |
| supersededBy | NSSecureCoding (for secure archives) ⓘ |
| supportsOperation |
decoding objects
ⓘ
encoding objects ⓘ |
| typicalUseCase |
document-based app data
ⓘ
interface state restoration ⓘ model object persistence ⓘ user preferences archiving ⓘ |
| usedFor |
archiving objects
ⓘ
backward-compatible data storage ⓘ interprocess data transfer ⓘ persisting object graphs ⓘ saving application state ⓘ unarchiving objects ⓘ |
| usedInLanguage | Swift NERFINISHED ⓘ |
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: NSCoding Description of subject: NSCoding is an Objective-C protocol in Apple’s frameworks that defines methods for encoding and decoding objects so they can be serialized and later reconstructed.
Referenced by (2)
Full triples — surface form annotated when it differs from this entity's canonical label.