Overridden by subclasses to substitute another object for itself during encoding.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
The coder encoding the receiver.
The object encode instead of the receiver (if different).
An object might encode itself into an archive, but encode a proxy for itself if it’s being encoded for distribution. This method is invoked by
NSObject’s implementation returns
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.