Instance Property

items

The pasteboard items on the pasteboard.

Declaration

@property(nonatomic, copy) NSArray<NSDictionary<NSString *,id> *> *items;

Discussion

The value of the property is an array of dictionaries. Each dictionary represents a pasteboard item, with the key being the representation type and the value the object associated with that type. Setting this property replaces all of the current pasteboard items.

See Also

Getting and Setting Multiple Pasteboard Items

- dataForPasteboardType:inItemSet:

Returns the data objects in the indicated pasteboard items that have the given representation type.

- valuesForPasteboardType:inItemSet:

Returns the objects in the indicated pasteboard items that have the given representation type.

- addItems:

Appends pasteboard items to the current contents of the pasteboard.

- setItems:options:

Adds an array of items to a pasteboard, and sets privacy options for all the items on the pasteboard.