Mail like search field with tokens (Mac OS X 10.7)
Asked Answered
W

1

9

Is there a standard control for developers to get the search field behavior like in Mail (Mac OS X 10.7) to make advanced searches with tokens?

In Mail the tokens are used to visualize a search for a mail which for example was sent by a person with the name "Steve Jobs". I try to accomplish the same but in another context.

Wrigley answered 27/12, 2011 at 10:35 Comment(0)
W
2

What your looking for is called a token field. See the Token Field Programming Guide. (Also documented on the CocoaDev Wiki)

Witticism answered 27/12, 2011 at 13:21 Comment(5)
Then how does what you want differ from what is described in that programming guide? That might help people better answer your question...Witticism
While reading into the token field programming guide, I discovered that I can make a miked token field with tokens and plain text, that's probably the easiest way to do it. ThanksWrigley
Are there any open source projects that allow you to add advanced tokens to a search field? Like this one bit.ly/u5xo1XPyrenees
@Pyrenees I'm looking for the same, but couldn't find anything useful. Maybe you have to subclass NSTokenFieldCell, and implement the functionality on your own.Wrigley
@Wrigley Did you ever find anything?Oestradiol

© 2022 - 2024 — McMap. All rights reserved.