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

# browser(_:numberOfRowsInColumn:)

Returns the number of rows of data in the specified column.

```
@MainActor optional func browser(_ sender: NSBrowser, numberOfRowsInColumn column: Int) -> Int
```

## Parameters

`sender`

The browser.

`column`

The index of the column.

## Return Value

The number of rows of data.

## Discussion

Either this method or [`browser(_:createRowsForColumn:in:)`](/documentation/AppKit/NSBrowserDelegate/browser(_:createRowsForColumn:in:)) must be implemented, but not both.

## See Also

[`-  browser:willDisplayCell:atRow:column:`](/documentation/AppKit/NSBrowserDelegate/browser(_:willDisplayCell:atRow:column:))

Gives the delegate the opportunity to modify the specified cell at the given row and column location before the browser displays 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)