Instance Method

pasteAsPlainText(_:)

Inserts the contents of the pasteboard into the receiver’s text as plain text.

Declaration

func pasteAsPlainText(_ sender: Any?)

Parameters

sender

The control that sent the message; may be nil.

Discussion

This method behaves analogously to insertText(_:).

See Also

Clicking and Pasting

func clicked(onLink: Any, at: Int)

Causes the text view to act as if the user clicked on some text with the given link as the value of a link attribute associated with the text.

func pasteAsRichText(Any?)

This action method inserts the contents of the pasteboard into the receiver’s text as rich text, maintaining its attributes.