---
title: "outlineView(_:shouldSelect:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsoutlineviewdelegate/outlineview(_:shouldselect:)"
---

# outlineView(_:shouldSelect:)

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

## Declaration

```swift
@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

Return Value true to permit outlineView to select tableColumn, false to deny permission.

## Discussion

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

## See Also

### Handling Selection

- [outlineView(_:shouldSelectItem:)](appkit/nsoutlineviewdelegate/outlineview(_:shouldselectitem:).md)
- [outlineView(_:selectionIndexesForProposedSelection:)](appkit/nsoutlineviewdelegate/outlineview(_:selectionindexesforproposedselection:).md)
- [selectionShouldChange(in:)](appkit/nsoutlineviewdelegate/selectionshouldchange(in:).md)
- [outlineViewSelectionIsChanging(_:)](appkit/nsoutlineviewdelegate/outlineviewselectionischanging(_:).md)
- [outlineViewSelectionDidChange(_:)](appkit/nsoutlineviewdelegate/outlineviewselectiondidchange(_:).md)
