<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSComboBoxCell/hasVerticalScroller",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSComboBoxCell(py)hasVerticalScroller"
  },
  "title" : "hasVerticalScroller"
}
-->

# hasVerticalScroller

A Boolean value that indicates if the combo box displays a vertical scroller.

```
var hasVerticalScroller: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the combo box displays a vertical scroller; when the value is <doc://com.apple.documentation/documentation/Swift/false>, it does not. The default value of this property is <doc://com.apple.documentation/documentation/Swift/true>. Note that the scroller is displayed even if the pop-up list contains fewer items than will fit in the area specified for display.

If you set this property to <doc://com.apple.documentation/documentation/Swift/false> and the combo box cell has more list items (either in its internal item list or from its data source) than are allowed by [`numberOfVisibleItems`](/documentation/AppKit/NSComboBoxCell/numberOfVisibleItems), only a subset are displayed. The [`NSComboBoxCell`](/documentation/AppKit/NSComboBoxCell) `scroll...` methods can be used to position this subset within the pop-up list.

## See Also

[`scrollItemAtIndexToTop(_:)`](/documentation/AppKit/NSComboBoxCell/scrollItemAtIndexToTop(_:))

Scrolls the combo box’s pop-up list vertically so that the item at the given index is as close to the top as possible.

[`numberOfItems`](/documentation/AppKit/NSComboBoxCell/numberOfItems)

The total number of items in the pop-up list.

[`scrollItemAtIndexToVisible(_:)`](/documentation/AppKit/NSComboBoxCell/scrollItemAtIndexToVisible(_:))

Scrolls the combo box’s pop-up list vertically so that the item at the given index is visible.



---

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)