---
title: "browser(_:willDisplayCell:atRow:column:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowserdelegate/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.

## Declaration

```swift
@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

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

## See Also

### Related Documentation

- [browser(_:numberOfRowsInColumn:)](appkit/nsbrowserdelegate/browser(_:numberofrowsincolumn:).md)

### Managing Columns

- [browser(_:createRowsForColumn:in:)](appkit/nsbrowserdelegate/browser(_:createrowsforcolumn:in:).md)
- [browser(_:didChangeLastColumn:toColumn:)](appkit/nsbrowserdelegate/browser(_:didchangelastcolumn:tocolumn:).md)
