Contents

NSStandardKeyBindingResponding

Methods that responder subclasses implement to support key binding commands, such as inserting tabs and newlines, or moving the insertion point.

Declaration

@MainActor protocol NSStandardKeyBindingResponding : NSObjectProtocol

Overview

NSResponder doesn’t implement any of these methods. NSTextView implements a subset of them related to text editing. Your responder subclasses can implement any methods that make sense. You can create your own methods as well, but use these if the concepts map to functionality in your app. If your responder subclass is a view that’s key and uses key binding, and the user types a key sequence bound to a command not implemented in your class, nothing happens by default.

Topics

Responding to Key Commands

Inserting Content

Deleting Content

Moving the Insertion Pointer

Modifying the Selection

Scrolling Content

Transposing Elements

Indenting Content

Canceling Operations

Supporting QuickLook

Supporting Writing Directions

Changing Capitalization

Moving the Selection in Documents

Moving the Selection in Paragraphs

Moving the Selection in Lines of Text

Changing the Selection

Supporting Marked Selections

Supporting Autocomplete

Moving the Selection by Word Boundaries

Instance Methods

See Also

Responding to Action Messages