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

# browser(_:createRowsForColumn:in:)

Creates a row in the given matrix for each row of data in the specified column of the browser.

```
@MainActor optional func browser(_ sender: NSBrowser, createRowsForColumn column: Int, in matrix: NSMatrix)
```

## Parameters

`sender`

The browser.

`column`

The index of the column in which the rows are located.

`matrix`

The matrix in which the rows are created.

## Discussion

Either this method or [`browser(_:numberOfRowsInColumn:)`](/documentation/AppKit/NSBrowserDelegate/browser(_:numberOfRowsInColumn:)) must be implemented, but not both, or an [`NSBrowserIllegalDelegateException`](/documentation/AppKit/NSBrowserIllegalDelegateException) will be raised.

---

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)