Refreshing NSTokenView
Refreshing NSTokenView
- Subject: Refreshing NSTokenView
- From: "Mike R. Manzano" <email@hidden>
- Date: Wed, 31 Aug 2005 10:20:44 -0700
Is there any way to get an NSTokenView to re-tokenize its data? I've
gotten close doing a setObjectValue: on it, and then marking it for
refresh, but it doesn't seem to re-tokenize this case correctly:
(1) I type: ThisIsATest
(2) I then arrow back and put in commas: This,Is,A,Test
(3) I hit return. Only "Test" is tokenized. The first three words are
not.
Now, I can place my cursor into each of the first three words and hit
return, and it will tokenize them individually, but I can't seem to
find a way to get them all to tokenize at the same time.
Can anyone help?
Oh yeah, in case anyone wants to know, you can make NSTokenView into
a multi-line wrapping token view by creating a custom view in IB, and
then setting its custom class to NSTokenView. Didn't see this
anywhere, thought I'd post it in case someone's trying to figure the
same thing out.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden