Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSTextField with suggestions drop-down

Instead of implementing my own, I am looking into reusing an existing custom NSTextField that has support for suggestions drop-down - Same as the one in the browser as you type you get a list of suggestions underneath.

Do you know any good ones?

Thank you!

like image 644
vance Avatar asked Dec 06 '25 18:12

vance


1 Answers

They're called completions. You still use a regular text field but add this:

control:textView:completions:forPartialWordRange:indexOfSelectedItem

The biggest problem is you need to provide the list of words that can be autocompleted.

like image 51
Elbimio Avatar answered Dec 08 '25 17:12

Elbimio



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!