Questions tagged [nstokenfieldcell]
9 questions
10
votes
1 answer
Make NSSearchField use NSTokenFieldCell?
I'm trying to emulate the tokenized search feature of Mail.app and Finder.app on 10.7+ where there is what looks to be an NSSearchField with a search magnifying glass icon on the left and cancel (x) button on the right, but also includes tokens…

Andrew
- 7,630
- 3
- 42
- 51
6
votes
1 answer
Mavericks Style Tagging
I'm quite new to cocoa and I'm trying to find out how I can create something similar to the new tagging UI in Mavericks:
I assume, I'll have to overwrite NSTokenFieldCell to get the coloured dots or an icon on the tags. But how does this popup list…

Zap
- 859
- 1
- 7
- 10
3
votes
0 answers
NSSearchField with tokenized search values
I am looking for a way to implement the search input with tokens like in mail apps to achieve a similar result:
I wonder if there is a straightforward way to implement it. I spent some time investigating if there is anything similar open sourced…

Defari
- 71
- 6
3
votes
2 answers
NSTokenField: different colors for tokens
I have created an NSTokenField in my xib. I'd like to display tokens with different colors inside that tokenField. Meaning: some tokens will be blue, the rest will be red (according to their content). Is that possible?
The following code doesn't…

Nili
- 1,963
- 3
- 20
- 39
2
votes
1 answer
Callback for deleting NSTokenField Tokens
In NSTokenField ,it seems while deleting tokens there is no delegate method exists.
I have tried making Wrapper Delegate:
#import "tokenDelegate.h"
@implementation tokenDelegate
@synthesize token,owner;
-(id)initWithWrappedToken:(id)token1…

Neelam Verma
- 3,232
- 1
- 22
- 33
1
vote
0 answers
Tacking control of NSTrackingArea Cocoa
I'd like to make an NSTokenField ignore mouse events when my screen is loading.So if I move the cursor over that text field the application is getting crashed with the crash logs
*** -[RSTokenFieldCell respondsToSelector:]: message sent to…

Rahul Singh
- 1,219
- 3
- 13
- 36
0
votes
0 answers
Raise baseline in NSTextView field editor
I want to manipulate the baseline when typing text in an NSTokenField to match the displayed tokens. To do so, I'm following the guide "Working With the Field Editor" in the documentation. There it is recommended to override the method - (NSText…

Jan Z.
- 6,883
- 4
- 23
- 27
0
votes
1 answer
MacOS Swift NSTableView with NSTokenFieldCell tracking which column drag started from
I have a simple test program that has a 2 column NSTableView (View based), both columns have their cells set to NSTokenFieldCell.
I also have a NSTokenField in this controller
I want to be able to drag and drop tokens from the table to the…

Gazing South
- 115
- 8
0
votes
0 answers
Inserting NSTokenFieldCell in NSTextView
I am trying to convert all the strings formatted as "<# Text #>" into tokens in a NSTextView - same behaviour as in Xcode. I have followed the steps given here to add custom attachments in NSTextView but without success. Is there any way to…

Chintan Ghate
- 179
- 1
- 8