---
title: "setCellClass(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbrowser/setcellclass(_:)"
---

# setCellClass(_:)

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

## Declaration

```swift
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 doc://com.apple.appkit/documentation/AppKit/NSBrowser/cellPrototype.

## See Also

### Managing Component Types

- [cellClass](appkit/nsbrowser/cellclass.md)
- [cellPrototype](appkit/nsbrowser/cellprototype.md)
