Overridden by subclasses to substitute another object for itself during keyed archiving.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- 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.