Instance Property

pasteboardItems

An array that contains all the items held by the pasteboard.

Declaration

@property(readonly, copy) NSArray<NSPasteboardItem *> *pasteboardItems;

Discussion

If an error occurs when retrieving the pasteboard items, the value of this property is nil.

See Also

Reading Data

- readObjectsForClasses:options:

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

NSPasteboardReadingOptionKey

Options for reading pasteboard data.

NSPasteboardReadingOptions

Options to specify how data on the pasteboard should be interpreted to initialize pasteboard data.

- 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.