---
title: "rightMouseDown(with:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsgesturerecognizer/rightmousedown(with:)"
---

# rightMouseDown(with:)

Informs the gesture recognizer that the user pressed the right mouse button.

## Declaration

```swift
func rightMouseDown(with event: NSEvent)
```

## Parameters

- `event`: An object encapsulating information about the mouse-down event.

## Discussion

Discussion The default implementation of this method does nothing. Use this method to start tracking the gesture in whatever way is appropriate. A gesture recognizer monitors events that occur in its view (and any subviews) but does not take part in the responder chain itself. The gesture recognizer receives events before any views do. Use the delaysSecondaryMouseButtonEvents property to control whether event is propagated to the view.

## See Also

### Methods for Subclasses

- [reset()](appkit/nsgesturerecognizer/reset().md)
- [mouseDown(with:)](appkit/nsgesturerecognizer/mousedown(with:).md)
- [mouseDragged(with:)](appkit/nsgesturerecognizer/mousedragged(with:).md)
- [mouseUp(with:)](appkit/nsgesturerecognizer/mouseup(with:).md)
- [otherMouseDown(with:)](appkit/nsgesturerecognizer/othermousedown(with:).md)
- [otherMouseDragged(with:)](appkit/nsgesturerecognizer/othermousedragged(with:).md)
- [otherMouseUp(with:)](appkit/nsgesturerecognizer/othermouseup(with:).md)
- [rightMouseDragged(with:)](appkit/nsgesturerecognizer/rightmousedragged(with:).md)
- [rightMouseUp(with:)](appkit/nsgesturerecognizer/rightmouseup(with:).md)
- [magnify(with:)](appkit/nsgesturerecognizer/magnify(with:).md)
- [rotate(with:)](appkit/nsgesturerecognizer/rotate(with:).md)
- [canBePrevented(by:)](appkit/nsgesturerecognizer/canbeprevented(by:).md)
- [canPrevent(_:)](appkit/nsgesturerecognizer/canprevent(_:).md)
- [shouldBeRequiredToFail(by:)](appkit/nsgesturerecognizer/shouldberequiredtofail(by:).md)
- [shouldRequireFailure(of:)](appkit/nsgesturerecognizer/shouldrequirefailure(of:).md)
