Contents

decodeObjectOfClasses:forKey:

Decodes an object for the key, restricted to the specified classes.

Declaration

- (id) decodeObjectOfClasses:(NSSet<Class> *) classes forKey:(NSString *) key;

Parameters

  • classes:

    A set of the expected classes.

  • key:

    The coder key.

Return Value

The decoded object.

Discussion

The class of the object may be any class in the classes set, or a subclass of any class in the set. Otherwise, the behavior is the same as decodeObjectOfClass:forKey:.

See Also

Decoding General Data