Contents

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 Documentation

Working with Pasteboards