Informs the view that the user has pressed the right mouse button.


- (void)rightMouseDown:(NSEvent *)theEvent



An object encapsulating information about the mouse-down event.


The default implementation calls menuForEvent: and, if non nil, presents the contextual menu. In macOS 10.7 and later, if the event is not handled, this method passes it up the responder chain.

See Also

Event Handling

- acceptsFirstMouse:

Overridden by subclasses to return YES if the view should be sent a mouseDown: message for an initial mouse-down event, NO if not.

- hitTest:

Returns the farthest descendant of the view in the view hierarchy (including itself) that contains a specified point, or nil if that point lies completely outside the view.

- mouse:inRect:

Returns whether a region of the view contains a specified point, accounting for whether the view is flipped or not.

- performKeyEquivalent:

Implemented by subclasses to respond to key equivalents (also known as keyboard shortcuts).


A Boolean value indicating whether the view can pass mouse down events through to its superviews.


The text input context object for the view.