<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSResponder/rightMouseDown(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSResponder(im)rightMouseDown:"
  },
  "title" : "rightMouseDown(with:)"
}
-->

# rightMouseDown(with:)

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

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

## Parameters

`event`

An object encapsulating information about the mouse-down event.

## Discussion

The default implementation simply passes this message to the next responder.

> Note:
> Prior to OS X v10.7, ``doc://com.apple.appkit/documentation/AppKit/NSView`` did not pass unhandled ``doc://com.apple.appkit/documentation/AppKit/NSResponder/rightMouseDown(with:)`` events up the responder chain. In macOS 10.7 and later, ``doc://com.apple.appkit/documentation/AppKit/NSView`` passes ``doc://com.apple.appkit/documentation/AppKit/NSResponder/rightMouseDown(with:)`` events up the responder chain if AppKit doesn’t find an associated context menu to display for the view. To avoid binary compatibility issues, this new behavior is enabled only for applications linked on macOS 10.7 or later.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)