Returns a data object that contains the encoded form of the object graph formed by the given root object.
- 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.
NSData object containing the encoded form of the object graph whose root object is
root. The format of the archive is