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

# outlineView(_:shouldSelect:)

Returns a Boolean value that indicates whether the outline view should select a given table column.

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

## Parameters

`outlineView`

The outline view that sent the message.

`tableColumn`

The table column.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to permit `outlineView` to select `tableColumn`, <doc://com.apple.documentation/documentation/Swift/false> to deny permission.

## Discussion

The delegate can implement this method to disallow selection of specific 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)