Archives an object graph rooted at a given object by encoding it into a data object then atomically writes the resulting data object to a file at a given path, and returns a Boolean value that indicates whether the operation was successful.
- iOS 2.0–12.0Deprecated
- macOS 10.2–10.14Deprecated
- UIKit for Mac 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.
true if the operation was successful, otherwise
The format of the archive is