nstokenfield

Populate an NSTokenField with tokens from a container of objects

I have an NSTableView and an NSTokenField in a window. I have implemented the following delegate methods: tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem: tokenField:representedObjectForEditingString: tokenField:displayStringForRepresentedObject: I want to make it so that when a row is selected in it, the NSTokenF...

Scroll bars in NSTokenField

Is it possible to get scroll bars on an NSTokenField when there are too many items to display? I've tried embedding it in a scroll view but it doesn't work. Thanks ...

Multiline NSTokenField and the return key

Hi, I have a NSTokenField object with multilines (just resized the control vertically in interface builder). Unfortunately the NSTokenField object does not insert new line when pressing the return key. Any ideas how to make the control insterting a new line when pressing the return key? Do I really have to go the complicated way throu...

Java TokenField like Cocoa's?

Does anyone know of an existing Java component that implements a TokenField, similar to Cocoa's NSTokenField? An overview of the Cocoa control is at: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/TokenField%5FGuide/Introduction/Introduction.html Suggestions for implementation? Thanks! ...

Custom UITextField/UIButton

What I'm trying to do is replicate the NSTokenField like UITextField seen in the Mail app and Messages app (type a contact and it comes up with suggestions). I've got the autocompleting working perfectly, when you type in a UITextField, a UITableView pops up showing any matches that it can find in an array, when you click one it adds it...

NSTokenField autocomplete

Hi, I'm creating an application which uses an NSTokenField. I need autocompletion. I'm using an NSURLRequest to request data from http://stackoverflow.com/filter/tags?_=&lt;timestamp&gt;&amp;limit=6&amp;q=&lt;str_to_autocomplete&gt;&amp;timestamp=&lt;timestamp&gt; Where <timestamp> is the current timestamp, an <str_to_autocomplete> is ...

Mail.app like NSTokenField for names and emails

Hey guys! I want to build a NSTokenField that works just like the recipient field in Mail.app. I know how to search the address book for names and emails. These are probably really bad noob questions, sorry for that. How can I reformat my search results array to get items in the format "Name <email>" (like the auto completion results i...

Making skype like token field for adding users to a chat

Hi all, In Mac, in skype when we add users to an existing chat, by clicking '+' button on top, a beak like window appears carrying a token field like control. When an user types some name in it and a match is found then a list appears carrying user icon , status icon and his/her name. Also the width of dynamic list is same as beak windo...

Qt Equivalent of NSTokenField

Hi - Is there an equivalent class/method for use in Qt that resembles Cocoa's NSTokenField? Dan; ...

how to customize NSTokenField like in "To/ CC" fields in mac mail?

Hi all, I am able to work with NSTokenField, it is easy to use.. but I want your suggestions on how can I customize it just like it is in "To/ CC" fields in mac mail ie. when no. of tokens in a token field increases height of "To" field gets increased to a certain limit then a vertical scroller starts appearing! By default when we use...

NSTokenFieldCell Subclass to force use of Core Data To-Many Relationship

I have come across an interesting conundrum (of course, I could just being doing something horribly wrong). I would like an NSTokenField to "represent" a relationship in a Core Data Application. The premise is such: You click on a Note from a TableView (loaded from the Notes Array Controller). The token field is then bound (through "val...

I would like to insert token at the insertion point of the cursor, not the end of the array

I have a button that adds a token to a NSTokenField. It adds the token always to the end of the field: NSTokenField *currentField = [sender representedObject]; // Determine which token should be inserted into the field using the tag of the sender. switch( [sender tag] ) { case eFileNameToken_StartDate: ...

Resizing NSTokenField after populating with tokens

I am using an NSTokenField as a way for users to enter tags. Everything works fine and it hooks up with CoreData managing the tags both when the user adds or deletes a tag. I recently added logic so that the NSTokenField would resize vertically as the user adds tags and they break to the next line using Andrew Bowman's IFVerticallyExpan...

NSTokenField tokens disappear when mouse leaves non-selected NSTokenField

Weird UI bug that is exactly what is reported at this link: http://www.mail-archive.com/[email protected]/msg53307.html The tokens in my NSTokenField disappear if I move the mouse into the non selected/currently editing field and then start moving the mouse out. The tokens just flicker away. ...

NSTokenField representing Core Data to-many relationship

Hi, I'm having a problem figuring out how to represent a many-to-many relationship model in a NSTokenField. I have two (relevant) models: Item Tag An item can have many tags and a tag can have many items. So it's an inverse to-many relationship. What I would like to do is represent these tags in a NSTokenField. I would like to end up...