How can I add tokens, like NSTokenField, to a NSTextView?
+2
A:
This is actually a little complicated. You will need to create a custom NSTextAttachment for each "token" and insert it into the NSTextStorage for your NSTextView.
There is a great post by David Sinclair at Dejal Systems which explains how to do it.
Rob Keniger
2009-09-21 22:07:32
Thanks man. I didn't know where to start looking for it. It's a great beginning.
goo
2009-09-21 22:24:29