Type Method

URLFromPasteboard:

Returns a URL from the specified pasteboard.

Declaration

+ (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard;

Parameters

pasteboard

The pasteboard containing a URL.

Return Value

The URL from the specified pasteboard or nil if there’s no URL on pasteboard.

Discussion

This method supports multiple pasteboard types including NSRULPboardType.

See Also

Using the Pasteboard

+ URLTitleFromPasteboard:

Returns the title of a URL from the specified pasteboard.

Deprecated
- pasteboardTypesForElement:

Returns an array of pasteboard types for an element.

Deprecated
pasteboardTypesForSelection

An array of pasteboard types that can be used for the current selection of the receiver.

Deprecated
- writeElement:withPasteboardTypes:toPasteboard:

Writes an element to the pasteboard using a list of types.

Deprecated
- writeSelectionWithPasteboardTypes:toPasteboard:

Writes the receiver’s current selection to a pasteboard using a list of types.

Deprecated