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

# completes

A Boolean value that indicates if the combo box tries to complete text entered by the user.

```
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 types in the text field and every time the user adds characters to the end of the text field, the combo box calls [`completedString(_:)`](/documentation/AppKit/NSComboBoxCell/completedString(_:)); when it is <doc://com.apple.documentation/documentation/Swift/false>, it does not.

If [`completedString(_:)`](/documentation/AppKit/NSComboBoxCell/completedString(_:)) returns a string that’s longer than the existing string, 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.

---

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)