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

# setMatrixClass(_:)

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

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

## Parameters

`factoryId`

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

## 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)