Instance Property class For Coder
Overridden by subclasses to substitute a class other than its own during coding.
iOS 2.0+ macOS 10.0+ tvOS 9.0+ watchOS 2.0+ Mac Catalyst 13.0+ Beta Declaration @property(readonly) Class classForCoder;
This method is invoked by
’s implementation returns the receiver’s class. The private subclasses of a class cluster substitute the name of their public superclass when being archived.
NSObject See Also Archiving - awake After Using Coder:
Overridden by subclasses to substitute another object in place of the object that was decoded and subsequently received this message.
class For Archiver
The class to substitute for the receiver's own class during archiving.
class For Port Coder
Class to substitute for the receiver in distribution encoding.
Deprecated + version
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