- iOS 6.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
trueif the receiver requires
true if the receiver requires
false if not.
class func archived
Data(with Root Object: Any) -> Data
NSData object containing the encoded form of the object graph whose root object is given.
class func archive
Root Object(Any, to File: String) -> Bool
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.
Instructs the receiver to construct the final data stream.
Format: Property List Serialization .Property List Format
The format in which the receiver encodes its data.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software