<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableViewDelegate/tableView(_:shouldSelect:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTableViewDelegate(im)tableView:shouldSelectTableColumn:"
  },
  "title" : "tableView(_:shouldSelect:)"
}
-->

# tableView(_:shouldSelect:)

Asks the delegate whether the specified table column can be selected.

```
@MainActor optional func tableView(_ tableView: NSTableView, shouldSelect tableColumn: NSTableColumn?) -> Bool
```

## Parameters

`tableView`

The table view that sent the message.

`tableColumn`

The table column.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to permit selection, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The delegate can implement this method to disallow selection of particular columns.

---

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)