Global Variable

NSPasteboardTypeURL

URL data for one file or resource.

Declaration

const NSPasteboardType NSPasteboardTypeURL;

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 writeToPasteboard: method of NSURL. To get an URL from a pasteboard, use the URLFromPasteboard: method of NSURL.

See Also

Pasteboard Types

NSFileContentsPboardType

A representation of a file’s contents.

NSFindPanelSearchOptionsPboardType

Type for the find panel metadata property list.

NSPasteboardTypeFont

Font and character information.

NSPasteboardTypeHTML

Type for HTML content.

NSPasteboardTypePNG

PNG image data.

NSPasteboardTypeRTF

Rich Text Format (RTF) data.

NSPasteboardTypeRTFD

RTFD formatted file contents.

NSPasteboardTypeRuler

Paragraph formatting information.

NSPasteboardTypeTabularText

Tab-separated fields of text.

NSPasteboardTypeTextFinderOptions

Type for the Find panel metadata property list.

NSPasteboardTypeTIFF

Tag Image File Format (TIFF) data.