Contents

completes

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

Declaration

var completes: Bool { get set }

Discussion

When the value of this property is 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(_:); when it is false, it does not.

If 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.

See Also

Completing the Text Field