Cocoa control for keywords/tags
-
05-07-2019 - |
Question
I want to build a keyword/tag feature for my Cocoa application. Is there a tutorial or example of how a control that sets keywords/tags works? I want it to look something like the Keywords window in iPhoto that you get from Window->Show Keywords.
Solution
There is a built in control for this called NSTokenField, it's a simple subclass of a NSTextField. You supply a string and a set of delimiters and it automatically tokenizes them.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow