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

# setFocusedColumn(_:)

Sets the currently focused column to the specified index.

```
func setFocusedColumn(_ focusedColumn: Int)
```

## Parameters

`focusedColumn`

The index of the column to focus, or -1 if there should be no focused column.

## Discussion

This method will redisplay the previously focused column and (if required) the new `focusedColumn`.

The focused column has a focus ring drawn around the [`selectedRow`](/documentation/AppKit/NSTableView/selectedRow) that intersects with `focusedColumn`.

You should not override this method.

> Note:
> This method is not applicable for ``doc://com.apple.appkit/documentation/AppKit/NSView``-based table views.

---

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)