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

# doubleAction

The message sent to the table view’s target when the user double-clicks a cell or column header.

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

## Discussion

This property stores a selector that corresponds to a method of the following form:

```objc
-(void)myCustomMethod:(id)sender
```

When the user double-clicks a cell or column header, the table calls the specified method of its [`target`](/documentation/AppKit/NSControl/target) object. The default value of this property is nil. If you do not specify a value for this property, the table view begins editing the cell.

The [`clickedRow`](/documentation/AppKit/NSTableView/clickedRow) and [`clickedColumn`](/documentation/AppKit/NSTableView/clickedColumn) properties allow you to determine which row and column the double-click occurred in or if, rather than in a row, the double-click occurred in a column heading.

Note that if the table view uses Cocoa bindings and the Double Click Target binding is bound, both messages are invoked on their respective targets: First the Cocoa binding message is sent, then the `setDoubleAction:` message.

## See Also

[`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)