Initializer

init(forWritingWith:)

Returns an archiver, initialized to encode stream and version information into a given mutable data object.

Declaration

init(forWritingWith mdata: NSMutableData)

Parameters

data

The mutable data object into which to write the archive. This value must not be nil.

Return Value

An archiver object, initialized to encode stream and version information into data.

Discussion

Raises an NSInvalidArgumentException if data is nil.

See Also