---
title: "setScrollable(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmatrix/setscrollable(_:)"
---

# setScrollable(_:)

Specifies whether the cells in the matrix are scrollable.

## Declaration

```swift
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

### Related Documentation

- [isScrollable](appkit/nscell/isscrollable.md)
- [prototype](appkit/nsmatrix/prototype.md)

### Scrolling Cells in the Matrix

- [isAutoscroll](appkit/nsmatrix/isautoscroll.md)
- [scrollCellToVisible(atRow:column:)](appkit/nsmatrix/scrollcelltovisible(atrow:column:).md)
