Instance Property


The pasteboard types that can be provided from the current selection.


@property(readonly, copy) NSArray<NSPasteboardType> *writablePasteboardTypes;


An array of strings describing the types that can be written to the pasteboard immediately, or an array with no members if the text view has no text or no selection.

Overriders can copy the result from super and add their own new types.

See Also

Managing the Pasteboard

- preferredPasteboardTypeFromArray:restrictedToTypesFromArray:

Returns whatever type on the pasteboard would be most preferred for copying data.

- readSelectionFromPasteboard:

Reads the text view’s preferred type of data from the specified pasteboard.

- readSelectionFromPasteboard:type:

Reads data of the given type from the specified pasteboard.


The types this text view can read immediately from the pasteboard.

- writeSelectionToPasteboard:type:

Writes the current selection to the specified pasteboard using the given type.

- writeSelectionToPasteboard:types:

Writes the current selection to the specified pasteboard under each given type.

- validRequestorForSendType:returnType:

Returns self if the text view can provide and accept the specified data types, or nil if it can't.