Instance Method

initForReadingWithData:

Initializes an archiver to decode data from the specified location.

Declaration

- (instancetype)initForReadingWithData:(NSData *)data;

Parameters

data

An archive previously encoded by NSKeyedArchiver.

Return Value

An NSKeyedUnarchiver object initialized for for decoding data.

Discussion

When you finish decoding data, you should invoke finishDecoding.

This method throws an exception if data is not a valid archive.

See Also

Creating a Keyed Unarchiver

- initForReadingFromData:error:

Initializes an archiver to decode data from the specified location.

- init

Initializes an archiver to decode data.

Deprecated