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

# usesDataSource

A Boolean value indicating whether the combo box retrieves its items from a data source object.

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

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the combo box retrieves its items from the object in the [`dataSource`](/documentation/AppKit/NSComboBox/dataSource) property. When the value is <doc://com.apple.documentation/documentation/Swift/false>, the combo box manages an internal list of items, which it gets from the ones specified at design time and the ones you add programmatically.

---

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)