Instance Method

initForWritingWithMutableData:

Initializes an archiver to encode data into a given a mutable-data object.

Declaration

- (instancetype)initForWritingWithMutableData:(NSMutableData *)data;

Parameters

data

The mutable-data object into which the archive is written.

Discussion

When you finish encoding data, you must invoke finishEncoding at which point data is filled. The format of the receiver is NSPropertyListBinaryFormat_v1_0.

See Also

Creating a Keyed Archiver

- initRequiringSecureCoding:

Creates an archiver to encode data, and optionally disables secure coding.

- init

Initializes an archiver to encode data.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software