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

# selectedRow(inColumn:)

Returns the row index of the selected cell in the specified column.

```
func selectedRow(inColumn column: Int) -> Int
```

## Parameters

`column`

The column index specifying the column for which to return the selected row.

## Return Value

The row index of the selected cell in the specified column. Returns `-1` if there is no selection.

## See Also

[`-  loadedCellAtRow:column:`](/documentation/AppKit/NSBrowser/loadedCell(atRow:column:))

Loads, if necessary, and returns the cell at the specified row and column location.



---

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)