Overridden by subclasses to substitute a class other than its own during coding.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
This method is invoked by
NSObject’s implementation returns the receiver’s class. The private subclasses of a class cluster substitute the name of their public superclass when being archived.
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.
Class to substitute for the receiver in distribution encoding.
Returns the version number assigned to the class.