Reads data representing a file’s contents from the receiver and writes it to the specified file.
- macOS 10.0+
The pasteboard data type to read. You should generally specify a value for this parameter. If you specify
nil, the filename extension (in combination with the
NSCreatefunction) is used to determine the type.
File Contents Pboard Type
The file to receive the pasteboard data.
The name of the file into which the data was actually written.
Data of any file contents type should only be read using this method. If data matching the specified type is not found on the pasteboard, data of type
NSFile is requested.