I am looking for a way to create an nssearchfield that behaves as follows:
- user types in text
- based on matches an autocompletion drop-down appears
- the text in the search field does not autocomplete to the first item in the list
The point is, my string matching searches for any substring and autocompletion in the text field would not work because it would overwrite my entered string. In fact it seems this should be the default behaviour, or am I misunderstanding the purpose of a search field?
Typing further would restrict the list further and further, but only after selecting an item in the autocompletion dropdown would that item be inserted into the text field.
If this cannot be accomplished using an nssearchfield, is there an alternative?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…