Type Alias

NSPasteboardReadingOptionKey

These options can be used for both the readObjectsForClasses:options: and canReadObjectForClasses:options: methods, unless otherwise specified. The currently available options allow for customization of how URLS are read from the pasteboard.

Declaration

typedef NSString *NSPasteboardReadingOptionKey;

Topics

Type Properties

NSPasteboardURLReadingContentsConformToTypesKey

Option for reading URLs to restrict the results to URLs with contents that conform to any of the provided UTI types.

NSPasteboardURLReadingFileURLsOnlyKey

Option for reading URLs to restrict the results to file URLs only.

See Also

Reading Data

- readObjectsForClasses:options:

Reads from the receiver objects that best match the specified array of classes.

pasteboardItems

An array that contains all the items held by the receiver or nil if there is an error retrieving pasteboard items.

- indexOfPasteboardItem:

Returns the index of the specified pasteboard item.

- dataForType:

Returns the data for the specified type from the first item in the receiver that contains the type.

- propertyListForType:

Returns the property list for the specified type from the first item in the receiver that contains the type.

- stringForType:

Returns a concatenation of the strings for the specified type from all the items in the receiver that contain the type.