init(serializedRepresentation:)
Initializes the receiver as a regular-file file wrapper from given serialized data.
Declaration
init?(serializedRepresentation serializeRepresentation: Data)Parameters
- serializeRepresentation:
Serialized representation of a file wrapper in the format used for the
NSFileContentsPboardTypepasteboard type. Data of this format is returned by such methods as Serializedrepresentation and Rtfd(from:documentattributes:) (Nsattributedstring).
Return Value
Regular-file file wrapper initialized from serializedRepresentation.
Discussion
The file wrapper is not associated with a file-system node until you save it using write(to:options:originalContentsURL:).