writeFileContents(_:)
Writes the contents of the specified file to the pasteboard.
Declaration
func writeFileContents(_ filename: String) -> BoolParameters
- filename:
The name of the file to write to the pasteboard.
Return Value
Discussion
Writes the contents of the file filename to the receiver and declares the data to be of type NSFileContentsPboardType and also of a type appropriate for the file’s extension (as returned by the NSCreateFileContentsPboardType function when passed the files extension), if it has one.