---
title: focusedColumn()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstableview/focusedcolumn()
---

# focusedColumn()

Returns the currently focused column.

## Declaration

```swift
func focusedColumn() -> Int
```

## Return Value

Return Value The index of the column, or -1 if there is no focused column

## Discussion

Discussion The focus interaction will always be on the selectedRow of the table. If the selectedRow is a full width cell, then focusedColumn will return 1 when focused. note: This method is not applicable for NSView-based table views. Instead, the view that has focus will be the firstResponder.

## See Also

### Deprecated Methods

- [setFocusedColumn(_:)](appkit/nstableview/setfocusedcolumn(_:).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)
