Initializer

init(from:)

Reads an NSURL object off of the specified pasteboard.

Declaration

init?(from pasteBoard: NSPasteboard)

Parameters

pasteBoard

The target pasteboard.

Return Value

a NSURL object, or nil if the pasteboard does not contain NSURLPboardType data.

See Also

Working with pasteboards

func write(to: NSPasteboard)

Writes the URL to the specified pasteboard.