pub unsafe trait NSStandardKeyBindingResponding: NSObjectProtocol + MainThreadOnly {
Show 96 methods
// Provided methods
unsafe fn insertText(&self, insert_string: &AnyObject)
where Self: Sized + Message { ... }
unsafe fn doCommandBySelector(&self, selector: Sel)
where Self: Sized + Message { ... }
unsafe fn moveForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveWordForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveWordBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToBeginningOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToEndOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToEndOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToBeginningOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn pageDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn pageUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn centerSelectionInVisibleArea(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveBackwardAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveForwardAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveWordForwardAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveWordBackwardAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveUpAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveDownAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToBeginningOfLineAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveToEndOfLineAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveToBeginningOfParagraphAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveToEndOfParagraphAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveToEndOfDocumentAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveToBeginningOfDocumentAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn pageDownAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn pageUpAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveParagraphForwardAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveParagraphBackwardAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveWordRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveWordLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveRightAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveLeftAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveWordRightAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveWordLeftAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToLeftEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToRightEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn moveToLeftEndOfLineAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn moveToRightEndOfLineAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn scrollPageUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn scrollPageDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn scrollLineUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn scrollLineDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn scrollToBeginningOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn scrollToEndOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn transpose(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn transposeWords(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn selectParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn selectLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn selectWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn indent(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertTab(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertBacktab(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertNewline(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertParagraphSeparator(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertNewlineIgnoringFieldEditor(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn insertTabIgnoringFieldEditor(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertLineBreak(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertContainerBreak(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn insertSingleQuoteIgnoringSubstitution(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn insertDoubleQuoteIgnoringSubstitution(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn changeCaseOfLetter(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn uppercaseWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn lowercaseWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn capitalizeWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteBackwardByDecomposingPreviousCharacter(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn deleteWordForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteWordBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteToBeginningOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteToEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteToEndOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn yank(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn complete(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn setMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn deleteToMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn selectToMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn swapWithMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn cancelOperation(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn makeBaseWritingDirectionNatural(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn makeBaseWritingDirectionLeftToRight(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn makeBaseWritingDirectionRightToLeft(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn makeTextWritingDirectionNatural(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn makeTextWritingDirectionLeftToRight(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn makeTextWritingDirectionRightToLeft(
&self,
sender: Option<&AnyObject>,
)
where Self: Sized + Message { ... }
unsafe fn quickLookPreviewItems(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn showContextMenuForSelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message { ... }
}
NSResponder
only.Expand description
Provided Methods§
Sourceunsafe fn insertText(&self, insert_string: &AnyObject)
unsafe fn insertText(&self, insert_string: &AnyObject)
*********************** Key binding entry-points ************************
§Safety
insert_string
should be of the correct type.
Sourceunsafe fn doCommandBySelector(&self, selector: Sel)
unsafe fn doCommandBySelector(&self, selector: Sel)
§Safety
selector
must be a valid selector.
Sourceunsafe fn moveForward(&self, sender: Option<&AnyObject>)
unsafe fn moveForward(&self, sender: Option<&AnyObject>)
*********************** Standard bindable commands ************************
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveRight(&self, sender: Option<&AnyObject>)
unsafe fn moveRight(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveBackward(&self, sender: Option<&AnyObject>)
unsafe fn moveBackward(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveLeft(&self, sender: Option<&AnyObject>)
unsafe fn moveLeft(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveUp(&self, sender: Option<&AnyObject>)
unsafe fn moveUp(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveDown(&self, sender: Option<&AnyObject>)
unsafe fn moveDown(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordForward(&self, sender: Option<&AnyObject>)
unsafe fn moveWordForward(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordBackward(&self, sender: Option<&AnyObject>)
unsafe fn moveWordBackward(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToBeginningOfLine(&self, sender: Option<&AnyObject>)
unsafe fn moveToBeginningOfLine(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToEndOfLine(&self, sender: Option<&AnyObject>)
unsafe fn moveToEndOfLine(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
unsafe fn moveToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToEndOfParagraph(&self, sender: Option<&AnyObject>)
unsafe fn moveToEndOfParagraph(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToEndOfDocument(&self, sender: Option<&AnyObject>)
unsafe fn moveToEndOfDocument(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToBeginningOfDocument(&self, sender: Option<&AnyObject>)
unsafe fn moveToBeginningOfDocument(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn pageDown(&self, sender: Option<&AnyObject>)
unsafe fn pageDown(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn pageUp(&self, sender: Option<&AnyObject>)
unsafe fn pageUp(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn centerSelectionInVisibleArea(&self, sender: Option<&AnyObject>)
unsafe fn centerSelectionInVisibleArea(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveBackwardAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveBackwardAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveForwardAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveForwardAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordForwardAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveWordForwardAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordBackwardAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveWordBackwardAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveUpAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveUpAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveDownAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveDownAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToBeginningOfLineAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveToBeginningOfLineAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToEndOfLineAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveToEndOfLineAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToBeginningOfParagraphAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveToBeginningOfParagraphAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToEndOfParagraphAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveToEndOfParagraphAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToEndOfDocumentAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveToEndOfDocumentAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToBeginningOfDocumentAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveToBeginningOfDocumentAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn pageDownAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn pageDownAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn pageUpAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn pageUpAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveParagraphForwardAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveParagraphForwardAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveParagraphBackwardAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveParagraphBackwardAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordRight(&self, sender: Option<&AnyObject>)
unsafe fn moveWordRight(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordLeft(&self, sender: Option<&AnyObject>)
unsafe fn moveWordLeft(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveRightAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveRightAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveLeftAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveLeftAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordRightAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveWordRightAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveWordLeftAndModifySelection(&self, sender: Option<&AnyObject>)
unsafe fn moveWordLeftAndModifySelection(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToLeftEndOfLine(&self, sender: Option<&AnyObject>)
unsafe fn moveToLeftEndOfLine(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToRightEndOfLine(&self, sender: Option<&AnyObject>)
unsafe fn moveToRightEndOfLine(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToLeftEndOfLineAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveToLeftEndOfLineAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn moveToRightEndOfLineAndModifySelection(
&self,
sender: Option<&AnyObject>,
)
unsafe fn moveToRightEndOfLineAndModifySelection( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn scrollPageUp(&self, sender: Option<&AnyObject>)
unsafe fn scrollPageUp(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn scrollPageDown(&self, sender: Option<&AnyObject>)
unsafe fn scrollPageDown(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn scrollLineUp(&self, sender: Option<&AnyObject>)
unsafe fn scrollLineUp(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn scrollLineDown(&self, sender: Option<&AnyObject>)
unsafe fn scrollLineDown(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn scrollToBeginningOfDocument(&self, sender: Option<&AnyObject>)
unsafe fn scrollToBeginningOfDocument(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn scrollToEndOfDocument(&self, sender: Option<&AnyObject>)
unsafe fn scrollToEndOfDocument(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn transpose(&self, sender: Option<&AnyObject>)
unsafe fn transpose(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn transposeWords(&self, sender: Option<&AnyObject>)
unsafe fn transposeWords(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn selectParagraph(&self, sender: Option<&AnyObject>)
unsafe fn selectParagraph(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn selectLine(&self, sender: Option<&AnyObject>)
unsafe fn selectLine(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn selectWord(&self, sender: Option<&AnyObject>)
unsafe fn selectWord(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn indent(&self, sender: Option<&AnyObject>)
unsafe fn indent(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertTab(&self, sender: Option<&AnyObject>)
unsafe fn insertTab(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertBacktab(&self, sender: Option<&AnyObject>)
unsafe fn insertBacktab(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertNewline(&self, sender: Option<&AnyObject>)
unsafe fn insertNewline(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertParagraphSeparator(&self, sender: Option<&AnyObject>)
unsafe fn insertParagraphSeparator(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertNewlineIgnoringFieldEditor(&self, sender: Option<&AnyObject>)
unsafe fn insertNewlineIgnoringFieldEditor(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertTabIgnoringFieldEditor(&self, sender: Option<&AnyObject>)
unsafe fn insertTabIgnoringFieldEditor(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertLineBreak(&self, sender: Option<&AnyObject>)
unsafe fn insertLineBreak(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertContainerBreak(&self, sender: Option<&AnyObject>)
unsafe fn insertContainerBreak(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertSingleQuoteIgnoringSubstitution(
&self,
sender: Option<&AnyObject>,
)
unsafe fn insertSingleQuoteIgnoringSubstitution( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn insertDoubleQuoteIgnoringSubstitution(
&self,
sender: Option<&AnyObject>,
)
unsafe fn insertDoubleQuoteIgnoringSubstitution( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn changeCaseOfLetter(&self, sender: Option<&AnyObject>)
unsafe fn changeCaseOfLetter(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn uppercaseWord(&self, sender: Option<&AnyObject>)
unsafe fn uppercaseWord(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn lowercaseWord(&self, sender: Option<&AnyObject>)
unsafe fn lowercaseWord(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn capitalizeWord(&self, sender: Option<&AnyObject>)
unsafe fn capitalizeWord(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteForward(&self, sender: Option<&AnyObject>)
unsafe fn deleteForward(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteBackward(&self, sender: Option<&AnyObject>)
unsafe fn deleteBackward(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteBackwardByDecomposingPreviousCharacter(
&self,
sender: Option<&AnyObject>,
)
unsafe fn deleteBackwardByDecomposingPreviousCharacter( &self, sender: Option<&AnyObject>, )
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteWordForward(&self, sender: Option<&AnyObject>)
unsafe fn deleteWordForward(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteWordBackward(&self, sender: Option<&AnyObject>)
unsafe fn deleteWordBackward(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteToBeginningOfLine(&self, sender: Option<&AnyObject>)
unsafe fn deleteToBeginningOfLine(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteToEndOfLine(&self, sender: Option<&AnyObject>)
unsafe fn deleteToEndOfLine(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
unsafe fn deleteToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteToEndOfParagraph(&self, sender: Option<&AnyObject>)
unsafe fn deleteToEndOfParagraph(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn yank(&self, sender: Option<&AnyObject>)
unsafe fn yank(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn complete(&self, sender: Option<&AnyObject>)
unsafe fn complete(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn setMark(&self, sender: Option<&AnyObject>)
unsafe fn setMark(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn deleteToMark(&self, sender: Option<&AnyObject>)
unsafe fn deleteToMark(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn selectToMark(&self, sender: Option<&AnyObject>)
unsafe fn selectToMark(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn swapWithMark(&self, sender: Option<&AnyObject>)
unsafe fn swapWithMark(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn cancelOperation(&self, sender: Option<&AnyObject>)
unsafe fn cancelOperation(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn makeBaseWritingDirectionNatural(&self, sender: Option<&AnyObject>)
unsafe fn makeBaseWritingDirectionNatural(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn makeBaseWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeBaseWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn makeBaseWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn makeBaseWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn makeTextWritingDirectionNatural(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionNatural(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn quickLookPreviewItems(&self, sender: Option<&AnyObject>)
unsafe fn quickLookPreviewItems(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn showContextMenuForSelection(&self, sender: Option<&AnyObject>)
unsafe fn showContextMenuForSelection(&self, sender: Option<&AnyObject>)
Present a context menu at the text cursor position, selection, or wherever is appropriate for your responder.
NSView has a default implementation of this method. For any view that returns a non-nil value from -menuForEvent:
, the default implementation will display that menu automatically. The NSView implementation uses the selectionAnchorRect
method in the NSViewContentSelectionInfo
protocol to determine the location of the selection and of the menu. The NSView implementation determines the menu to display by calling menuForEvent:
with a right-mouse-down event that is centered on the anchor rect. If selectionAnchorRect
is not implemented, then the NSView implementation calls menuForEvent
with a right-mouse-down event that is centered on the view’s bounds, and also displays the menu at that location.
You should only override this method in a custom view if you need full control over the display of a context menu from the keyboard or Accessibility, beyond what is provided by default by NSView.
If the view does not support a context menu, then you should call [[self nextResponder] tryToPerform:_cmd with:sender]
to pass the request up the responder chain.
Note: In some cases, this method will be called without a prior call to contextMenuKeyDown:
. This occurs when a view receives an Accessibility ShowMenu action, or when the user has created a Cocoa Text key binding to map a different key combination to the showContextMenuForSelection:
action.
Parameter sender
: The object that originated the display of the context menu.
See also: menuForEvent:
See also: selectionAnchorRect
See also: contextMenuKeyDown:
§Safety
sender
should be of the correct type.
Trait Implementations§
Source§impl ProtocolType for dyn NSStandardKeyBindingResponding
impl ProtocolType for dyn NSStandardKeyBindingResponding
impl<T> ImplementedBy<T> for dyn NSStandardKeyBindingResponding
Implementations on Foreign Types§
impl<T> NSStandardKeyBindingResponding for ProtocolObject<T>where
T: ?Sized + NSStandardKeyBindingResponding,
Implementors§
impl NSStandardKeyBindingResponding for NSResponder
impl NSStandardKeyBindingResponding for NSTextView
NSTextView
only.