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

# browser(_:heightOfRow:inColumn:)

Specifies the height of the specified row in the specified column.

```
@MainActor optional func browser(_ browser: NSBrowser, heightOfRow row: Int, inColumn columnIndex: Int) -> CGFloat
```

## Parameters

`browser`

The browser.

`row`

The index of the row.

`columnIndex`

The index of the column.

## Return Value

The height to set for the specified row, which must be greater than 0.

## Discussion

The values returned for this method may be cached. Therefore, you should call [`noteHeightOfRowsWithIndexesChanged(_:inColumn:)`](/documentation/AppKit/NSBrowser/noteHeightOfRowsWithIndexesChanged(_:inColumn:)) to invalidate a row’s height before changing it.

---

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)