Type Property

URL

URL data for one file or resource.

Declaration

static let URL: NSPasteboard.PasteboardType

Discussion

In macOS 10.6 and later, use writeObjects(_:) to write URLs directly to the pasteboard instead.

In macOS 10.5 and earlier, write an URL to a pasteboard using the write(to:) method of NSURL. To get an URL from a pasteboard, use the init(from:) method of NSURL.