Defari
Defari

Reputation: 81

NSSearchField with tokenized search values

I am looking for a way to implement the search input with tokens like in mail apps to achieve a similar result:

enter image description here

I wonder if there is a straightforward way to implement it. I spent some time investigating if there is anything similar open sourced and found nothing. But the majority of mail clients have this kind of inputs, including the "recents" menu:

enter image description here

Is there any way to reuse NSTokenFieldCell to achieve the same result but in NSSearchField? Or should I just use NSTokenField, and append a search icon and a menu to it?

Upvotes: 4

Views: 320

Answers (0)

Related Questions