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

# setCellClass(_:)

Sets the class of the cell to be used by the matrices in the columns of the browser.

```
func setCellClass(_ factoryId: AnyClass)
```

## Parameters

`factoryId`

The class of `NSCell` used by the matrices in the columns of the browser. This method creates an instance of the class and sets [`cellPrototype`](/documentation/AppKit/NSBrowser/cellPrototype).

## Discussion

---

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)