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

# completes

A Boolean value indicating whether the combo box tries to complete what the user types.

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

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the combo box tries to complete what the user is typing. Every time the user types a new character, the combo box uses the [`completedString(_:)`](/documentation/AppKit/NSComboBoxCell/completedString(_:)) method of its cell to get the new value. If the string returned by that method is longer than the string typed by the user, the combo box replaces the existing string with the returned string and selects the additional characters. If the user is deleting characters or adds characters somewhere besides the end of the string, the combo box does not try to complete it.

When the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, the combo box does not try to complete the string typed by the user.

---

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)