Selector Name | Description |
---|---|
insertNewline: | Insert a newline at the insertion point. |
insertTab: | Insert a tab at the insertion point. |
insertBacktab: | Insert a backward tab at the insertion point. |
deleteBackward: | Delete the character before the insertion point. |
deleteForward: | Delete the character after the insertion point. |
deleteToBeginningOfLine: | Delete text from the insertion point to the beginning of the current line. |
deleteToEndOfLine: | Delete text from the insertion point to the end of the current line. |
deleteWordBackward: | Delete the word before the insertion point. |
deleteWordForward: | Delete the word after the insertion point. |
deleteToMarkedLocation: | Delete text from the insertion point to the marked location. |
cut: | Cut the selected text. |
copy: | Copy the selected text. |
paste: | Paste the clipboard contents at the insertion point. |
pasteAsPlainText: | Paste the clipboard contents as plain text at the insertion point. |
pasteAsRichText: | Paste the clipboard contents as rich text at the insertion point. |
pasteAndMatchStyle: | Paste the clipboard contents and match the style of the insertion point. |
capitalizeWord: | Capitalize the current word. |
uppercaseWord: | Convert the current word to uppercase. |
lowercaseWord: | Convert the current word to lowercase. |
transpose: | Transpose characters at the insertion point. |
transposeWords: | Transpose words at the insertion point. |
transposeCharacters: | Transpose characters at the insertion point. |
cancel: | Cancel the current action. |
selectAll: | Select all text. |
selectWord: | Select the current word. |
selectLine: | Select the current line. |
selectParagraph: | Select the current paragraph. |
undo: | Undo the last action. |
redo: | Redo the last undone action. |
pasteAsPlainTextAndPreserveStyle: | Paste clipboard contents as plain text and preserve the style of the insertion point. |
pasteAsRichTextAndPreserveStyle: | Paste clipboard contents as rich text and preserve the style of the insertion point. |
indent: | Indent the selected text. |
outdent: | Outdent the selected text. |
insertContainerBreak: | Insert a container break. |
insertLineBreak: | Insert a line break. |
insertPageBreak: | Insert a page break. |
insertTabIgnoringFieldEditor: | Insert a tab while ignoring the field editor. |
setMark: | Set the marked location for operations. |
deleteToMark: | Delete text between the insertion point and the marked location. |
centerSelectionInVisibleArea: | Center the selection in the visible area. |
moveToLeftEndOfLine: | Move to the left end of the current line. |
moveToLeftEndOfParagraph: | Move to the left end of the current paragraph. |
moveToLeftEndOfParagraphAndModifySelection: | Move to the left end of the current paragraph and modify the selection. |
moveToLeftEndOfLineAndModifySelection: | Move to the left end of the current line and modify the selection. |
moveToRightEndOfLine: | Move to the right end of the current line. |
moveToRightEndOfParagraph: | Move to the right end of the current paragraph. |
moveToRightEndOfParagraphAndModifySelection: | Move to the right end of the current paragraph and modify the selection. |
moveToRightEndOfLineAndModifySelection: | Move to the right end of the current line and modify the selection. |
moveToBeginningOfLine: | Move to the beginning of the current line. |
moveToBeginningOfLineAndModifySelection: | Move to the beginning of the current line and modify the selection. |
moveToBeginningOfParagraph: | Move to the beginning of the current paragraph. |
moveToBeginningOfParagraphAndModifySelection: | Move to the beginning of the current paragraph and modify the selection. |
moveToEndOfLine: | Move to the end of the current line. |
moveToEndOfLineAndModifySelection: | Move to the end of the current line and modify the selection. |
moveToEndOfParagraph: | Move to the end of the current paragraph. |
moveToEndOfParagraphAndModifySelection: | Move to the end of the current paragraph and modify the selection. |
insertLineBreak: | Insert a line break. |
deleteToBeginningOfLine: | Delete text from the insertion point to the beginning of the current line. |
deleteToEndOfLine: | Delete text from the insertion point to the end of the current line. |
deleteToMarkedLocation: | Delete text from the insertion point to the marked location. |
cancelOperation: | Cancel the current operation. |
Created
August 13, 2023 07:00
-
-
Save jasonm23/2f454b604f245c8794ac32aa091954b8 to your computer and use it in GitHub Desktop.
macOS NSTextView / NSTextField action selectors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment