Overridden by subclasses to substitute another object for itself during keyed archiving.
- iOS 2.0+
- macOS 10.2+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
A keyed archiver creating an archive.
The object encode instead of the receiver (if different).
This method is called only if no replacement mapping for the object has been set up in the encoder (for example, due to a previous call of
replacementObjectForKeyedArchiver: to that object).
Overridden by subclasses to substitute another object in place of the object that was decoded and subsequently received this message.
The class to substitute for the receiver's own class during archiving.
Overridden by subclasses to substitute a class other than its own during coding.
Class to substitute for the receiver in distribution encoding.
Returns the version number assigned to the class.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software