Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Refreshing NSTokenView in OS X Tiger



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. Keywords: token, token view, wrap, resize, resizable.


Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.