<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMatrix/doubleAction",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMatrix(py)doubleAction"
  },
  "title" : "doubleAction"
}
-->

# doubleAction

The action sent to the target of the receiver when the user double-clicks a cell.

```
var doubleAction: Selector? { get set }
```

## Discussion

The double-click action of an [`NSMatrix`](/documentation/AppKit/NSMatrix) is sent after the appropriate single-click action (for the [`NSCell`](/documentation/AppKit/NSCell) clicked, or for the [`NSMatrix`](/documentation/AppKit/NSMatrix) if the [`NSCell`](/documentation/AppKit/NSCell) doesn’t have its own action). If there is no double-click action and the [`NSMatrix`](/documentation/AppKit/NSMatrix) doesn’t ignore multiple clicks, the single-click action is sent twice. If the value of this property is a non-`nil` selector, this property also sets `ignoresMultiClick` to <doc://com.apple.documentation/documentation/Swift/false>; otherwise, it leaves `ignoresMultiClick` unchanged.

## See Also

[`action`](/documentation/AppKit/NSControl/action)

The default action-message selector associated with the control.

[`ignoresMultiClick`](/documentation/AppKit/NSControl/ignoresMultiClick)

A Boolean value indicating whether the receiver ignores multiple clicks made in rapid succession.

[`target`](/documentation/AppKit/NSControl/target)

The target object that receives action messages from the cell.



---

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)