Type Method

classNameForClass:

Returns the class name with which the archiver class encodes instances of a given class.

Declaration

+ (NSString *)classNameForClass:(Class)cls;

Parameters

cls

The class for which to determine the translation mapping.

Return Value

The class name with which NSKeyedArchiver encodes instances of cls. Returns nil if NSKeyedArchiver does not have a translation mapping for cls.

See Also

Managing Classes and Class Names

+ setClassName:forClass:

Sets a global translation mapping to encode instances of a given class with the provided name, rather than their real name.

- setClassName:forClass:

Sets a mapping for this archiver to encode instances of a given class with the provided name, rather than their real name.

- classNameForClass:

Returns the class name with which this archiver encodes instances of a given class.