Hi,

I'm wondering if there is any secret technique for inserting a token into an NSTokenField at the current cursor position. I have already tried to code it myself and aborted as my code turned out to be way too unreliable. So before I spend another day trying to get it done myself I thought I should better ask the crowd.

Getting/setting the NSEditor's selection range is fairly simple but how do I tell the NSTokenField to not insert the new token at the very end of the NSTokenFieldbut at the current selection range? (And replace the selection with the new token or split plaintext segments if necessary)

Any hints? Has nobody ever needed this? The web doesn't say anything helpful either.

Cheers,
Vincent
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to