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
decodeArray(ofObjCType:count:at:)decodeBool(forKey:)decodeBytes(forKey:returnedLength:)decodeBytes(withReturnedLength:)decodeData()decodeDouble(forKey:)decodeFloat(forKey:)decodeCInt(forKey:)decodeInteger(forKey:)decodeInt32(forKey:)decodeInt64(forKey:)decodeNXObjectdecodeObject()decodeObject(forKey:)decodePoint()