views:

122

answers:

1

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
Thanks man. I didn't know where to start looking for it. It's a great beginning.
goo