Archives an object graph rooted at a given object to a file at a given path.
- 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
The root of the object graph to archive.
The path of the file in which to write the archive.
YES if the operation was successful, otherwise
This method archives the graph formed by the root object to a data object, then atomically writes it to the given path. The format of the archive is