8

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.

brutella
  • 1,597
  • 13
  • 26

1 Answers1

1

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

RyanWilcox
  • 13,890
  • 1
  • 36
  • 60
  • Then how does what you want differ from what is described in that programming guide? That might help people better answer your question... – RyanWilcox Dec 27 '11 at 14:55
  • 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. Thanks – brutella Dec 28 '11 at 12:52
  • Are there any open source projects that allow you to add advanced tokens to a search field? Like this one http://bit.ly/u5xo1X – Tony Jan 02 '12 at 02:50
  • @Tony 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. – brutella Jan 08 '12 at 11:03
  • @brutella Did you ever find anything? – ericg Dec 10 '12 at 12:01