Type Property 型プロパティ

allowedTopLevelClasses

A list of allowed classes the top-level object in an archive must conform to, for encoding and decoding.

Declaration 宣言

@property(class, readonly, copy) NSArray<Class> *allowedTopLevelClasses;

Discussion 議論

This property contains the value of transformedValueClass if that value isn’t nil. Otherwise, it holds a list of the top level classes that it decodes, which includes NSArray, NSDictionary, NSSet, NSString, NSNumber, NSDate, NSData, NSURL, NSUUID, and NSNull.

Override this property in subclasses to provide an expanded or different set of allowed transformation classes.