Initializes an archiver to encode data into a given a mutable-data object.
Deprecated
Use init
instead.
SDKs
- iOS 2.0–12.0Deprecated
- macOS 10.2–10.14Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–12.0Deprecated
- watchOS 2.0–5.0Deprecated
Framework
- Foundation
Declaration
- (instancetype)initForWritingWithMutableData:(NSMutable Data *)data;
Parameters
data
The mutable-data object into which the archive is written.
Discussion
When you finish encoding data, you must invoke finish
at which point data
is filled. The format of the receiver is NSProperty
.