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

# 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.

```
@MainActor optional func browser(_ sender: NSBrowser, willDisplayCell cell: Any, atRow row: Int, column: Int)
```

## Parameters

`sender`

The browser.

`cell`

The cell to be displayed.

`row`

The row index of the cell to be displayed.

`column`

The column index of the cell to be displayed.

## Discussion

The delegate should set any state necessary for the correct display of the cell.

## See Also

[`-  browser:numberOfRowsInColumn:`](/documentation/AppKit/NSBrowserDelegate/browser(_:numberOfRowsInColumn:))

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



---

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)