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

# isColumnSelected(_:)

Returns a Boolean value that indicates whether the column at the specified index is selected.

```
func isColumnSelected(_ column: Int) -> Bool
```

## Parameters

`column`

The index into the [`tableColumns`](/documentation/AppKit/NSTableView/tableColumns) array that represents the column to test.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the column at `columnIndex` is selected, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## See Also

[`- (NSEnumerator *) selectedColumnEnumerator;`](/documentation/AppKit/NSTableView/selectedColumnEnumerator)

This method has been deprecated.

[`- (void) selectColumn:(NSInteger) column byExtendingSelection:(BOOL) extend;`](/documentation/AppKit/NSTableView/selectColumn:byExtendingSelection:)

Selects the column at the specified index, optionally extending any existing selection.



---

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)