Type Method

classForClassName:

Returns the class from which this unarchiver instantiates an encoded object with a given class name.

Declaration

+ (Class)classForClassName:(NSString *)codedName;

Parameters

codedName

The ostensible name of a class in an archive.

Return Value

The class from which NSKeyedUnarchiver instantiates an object encoded with the class name codedName. Returns nil if NSKeyedUnarchiver does not have a translation mapping for codedName.

See Also

Managing Class Names

+ setClass:forClassName:

Sets a global translation mapping to decode objects encoded with a given class name as instances of a given class instead.

- setClass:forClassName:

Sets a translation mapping on this unarchiver to decode objects encoded with a given class name as instances of a given class instead.

- classForClassName:

Returns the class from which this unarchiver instantiates an encoded object with a given class name.