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

# setScrollable(_:)

Specifies whether the cells in the matrix are scrollable.

```
func setScrollable(_ flag: Bool)
```

## Parameters

`flag`

<doc://com.apple.documentation/documentation/Swift/true> to make all the cells in the receiver scrollable, so the text they contain scrolls to remain in view if the user types past the edge of the cell. If `flag` is <doc://com.apple.documentation/documentation/Swift/false>, all cells are made nonscrolling. The prototype cell, if there is one, is also set accordingly

## See Also

[`var isScrollable: Bool`](/documentation/AppKit/NSCell/isScrollable)

A Boolean value indicating whether excess text scrolls past the cell’s bounds.

[`var prototype: NSCell?`](/documentation/AppKit/NSMatrix/prototype)

The prototype cell that’s copied whenever the matrix creates a new cell.



---

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)