Instance Property


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


var completes: Bool { get set }


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

func completedString(String) -> String?

Returns a string from the combo box’s pop-up list that starts with the given substring.