Instance Property

requiresSecureCoding

Indicates whether the archiver requires all archived classes to resist object substitution attacks.

Declaration

@property(readwrite) BOOL requiresSecureCoding;

Parameters

flag

YES if the receiver requires NSSecureCoding; NO if not.

Discussion

If you set the archiver to require secure coding, it throws an exception if you attempt to archive a class which doesn’t conform to NSSecureCoding.

Note that the getter is on the superclass, NSCoder. See NSCoder for more information about secure coding.

See Also

Archiving Data

+ archivedDataWithRootObject:requiringSecureCoding:error:

Encodes an object graph with the given root object into a data representation, optionally requiring secure coding.

- finishEncoding

Instructs the receiver to construct the final data stream.

encodedData

The encoded data for the archiver.

outputFormat

The format in which the receiver encodes its data.

+ archivedDataWithRootObject:

Returns a data object that contains the encoded form of the object graph formed by the given root object.

Deprecated
+ archiveRootObject:toFile:

Archives an object graph rooted at a given object to a file at a given path.

Deprecated