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

# hasVerticalScroller

A Boolean value indicating whether the combo box has 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 even when the pop-up list contains few enough items that a scroller is not needed. The default value of this property is <doc://com.apple.documentation/documentation/Swift/true>.

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

## See Also

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

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

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

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

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

Scrolls the receiver’s pop-up list vertically so that the item at the specified 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)