NSStandardKeyBindingResponding

Trait NSStandardKeyBindingResponding 

Source
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 { ... }
}
Available on crate feature NSResponder only.
Expand description

Provided Methods§

Source

unsafe fn insertText(&self, insert_string: &AnyObject)
where Self: Sized + Message,

*********************** Key binding entry-points ************************

§Safety

insert_string should be of the correct type.

Source

unsafe fn doCommandBySelector(&self, selector: Sel)
where Self: Sized + Message,

§Safety

selector must be a valid selector.

Source

unsafe fn moveForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

*********************** Standard bindable commands ************************

§Safety

sender should be of the correct type.

Source

unsafe fn moveRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToBeginningOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToEndOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToEndOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToBeginningOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn pageDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn pageUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn centerSelectionInVisibleArea(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveBackwardAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveForwardAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordForwardAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordBackwardAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveUpAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveDownAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToBeginningOfLineAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToEndOfLineAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToBeginningOfParagraphAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToEndOfParagraphAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToEndOfDocumentAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToBeginningOfDocumentAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn pageDownAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn pageUpAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveParagraphForwardAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveParagraphBackwardAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveRightAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveLeftAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordRightAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveWordLeftAndModifySelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToLeftEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToRightEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToLeftEndOfLineAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn moveToRightEndOfLineAndModifySelection( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn scrollPageUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn scrollPageDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn scrollLineUp(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn scrollLineDown(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn scrollToBeginningOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn scrollToEndOfDocument(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn transpose(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn transposeWords(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn selectAll(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn selectParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn selectLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn selectWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn indent(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertTab(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertBacktab(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertNewline(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertParagraphSeparator(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertNewlineIgnoringFieldEditor(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertTabIgnoringFieldEditor(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertLineBreak(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertContainerBreak(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertSingleQuoteIgnoringSubstitution( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn insertDoubleQuoteIgnoringSubstitution( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn changeCaseOfLetter(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn uppercaseWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn lowercaseWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn capitalizeWord(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteBackwardByDecomposingPreviousCharacter( &self, sender: Option<&AnyObject>, )
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteWordForward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteWordBackward(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteToBeginningOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteToEndOfLine(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteToBeginningOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteToEndOfParagraph(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn yank(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn complete(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn setMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn deleteToMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn selectToMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn swapWithMark(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn cancelOperation(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn makeBaseWritingDirectionNatural(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn makeBaseWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn makeBaseWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn makeTextWritingDirectionNatural(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn quickLookPreviewItems(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

§Safety

sender should be of the correct type.

Source

unsafe fn showContextMenuForSelection(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

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

Source§

const NAME: &'static str = "NSStandardKeyBindingResponding"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSStandardKeyBindingResponding

Implementations on Foreign Types§

Source§

impl<T> NSStandardKeyBindingResponding for ProtocolObject<T>

Implementors§