Instance Method

types(forItemSet:)

Returns an array of representation types for each specified pasteboard item.

Declaration

func types(forItemSet itemSet: IndexSet?) -> [[String]]?

Parameters

itemSet

An index set with each integer value identifying a pasteboard item positionally in the pasteboard. Pass in nil to request all pasteboard items.

Return Value

An array of arrays, with each inner array holding the representation types for a particular pasteboard item.

See Also

Determining the Types of Multiple Pasteboard Items

var numberOfItems: Int

Returns the number of items in the pasteboard

func itemSet(withPasteboardTypes: [String]) -> IndexSet?

Returns an index set identifying pasteboard items having the specified representation types.

func contains(pasteboardTypes: [String], inItemSet: IndexSet?) -> Bool

Returns whether the specified pasteboard items contain data of the given representation types.