Instance Method

write(to:)

Writes the URL to the specified pasteboard.

Declaration

func write(to pasteBoard: NSPasteboard)

Parameters

pasteboard

The target pasteboard.

Discussion

You must declare an NSURLPboardType data type for the pasteboard before invoking this method. Otherwise, the method returns without doing anything.

See Also

Working with pasteboards

init?(from: NSPasteboard)

Reads an NSURL object off of the specified pasteboard.