Insert token at selection of NSTokenField?
Insert token at selection of NSTokenField?
- Subject: Insert token at selection of NSTokenField?
- From: "Vincent E." <email@hidden>
- Date: Sun, 10 Aug 2008 18:23:45 +0200
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 (email@hidden)
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:
This email sent to email@hidden