Instance Method

writeToPasteboard:

Writes the URL to the specified pasteboard.

Declaration

- (void)writeToPasteboard:(NSPasteboard *)pasteBoard;

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

Working with Pasteboards

+ URLFromPasteboard:

Reads an NSURL object off of the specified pasteboard.