---
title: "setFocusedColumn(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstableview/setfocusedcolumn(_:)"
---

# setFocusedColumn(_:)

Sets the currently focused column to the specified index.

## Declaration

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

## Parameters

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

## Discussion

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 that intersects with focusedColumn. You should not override this method. note: This method is not applicable for NSView-based table views.

## See Also

### Deprecated Methods

- [focusedColumn()](appkit/nstableview/focusedcolumn().md)
- [shouldFocusCell(_:atColumn:row:)](appkit/nstableview/shouldfocuscell(_:atcolumn:row:).md)
- [performClickOnCell(atColumn:row:)](appkit/nstableview/performclickoncell(atcolumn:row:).md)
- [preparedCell(atColumn:row:)](appkit/nstableview/preparedcell(atcolumn:row:).md)
