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

# setMatrixClass(_:)

Sets the matrix class to be used in the browser’s columns.

## Declaration

```swift
func setMatrixClass(_ factoryId: AnyClass)
```

## Parameters

- `factoryId`: The matrix class (NSMatrix or an NSMatrix subclass) used in the browser’s columns.

## See Also

### Deprecated

- [column(of:)](appkit/nsbrowser/column(of:).md)
- [matrix(inColumn:)](appkit/nsbrowser/matrix(incolumn:).md)
- [matrixClass()](appkit/nsbrowser/matrixclass().md)
