<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBrowser/selectedColumn",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBrowser(py)selectedColumn"
  },
  "title" : "selectedColumn"
}
-->

# selectedColumn

The index of the last column with a selected item.

```
var selectedColumn: Int { get }
```

## Discussion

When the value of this property is `-1`, there is no column selected.

## See Also

[`selectAll(_:)`](/documentation/AppKit/NSBrowser/selectAll(_:))

Selects all cells in the last column of the browser.

[`column(of:)`](/documentation/AppKit/NSBrowser/column(of:))

Returns the column number in which the given matrix is located.



---

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)