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

Related Symbols

init?(from: NSPasteboard)

Reads an NSURL object off of the specified pasteboard.

func declareTypes([String], owner: Any?)

Prepares the receiver for a change in its contents by declaring the new types of data it will contain and a new owner.