Instance Method


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


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



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.