Questions tagged [nstextfieldcell]
94 questions
0
votes
1 answer
Intercepting undo while editing a cell-based table view
I'd like to intercept or disable Cmd-Z/Shift-Cmd-Z during a text editing session for a table view cell.
It's a cell-based table view with a series of columns whose values affect each other, such that filling in some columns will populate others…

paulmelnikow
- 16,895
- 8
- 63
- 114
0
votes
1 answer
Start NSTextFieldCell editing by button click
I need to start NSTextFieldCell editing after button clicked (the same behaviour if user double click on the cell)
I found a function performClick which simulates user clicking by cursor. My idea is to call a simulation of double clicking. Does this…

Ilya Blokh
- 11,923
- 11
- 52
- 84
0
votes
1 answer
How to see the whole string in NSTextFieldCell?
When I put a long string inside my NSTableView the text isn't displayed wholly:
I need to allow user to see the whole string (maybe with scroll or tooltip, it doesn't matter). Any suggestions?
Thanks

Ilya Blokh
- 11,923
- 11
- 52
- 84
0
votes
1 answer
Vertically expanding fieldEditor for an NSTextFieldCell
NSWindows have a "field editor" associated with them, which is an NSText that appears in the same place as a NSTextField or NSTextFieldCell when the user focuses on the aforementioned control.
Field editors have the same size as the NSTextField or…

Ivan Vučica
- 9,529
- 9
- 60
- 111
0
votes
1 answer
Change NSTextField text color when in edit mode
Using NSTextField I'd like to change the text color from black to white when going into edit mode.
Right now, it:
Defaults to black when not selected (GOOD)
Defaults to white when selected (GOOD)
Changes color to black when editing starts…

MMV
- 297
- 2
- 9
0
votes
0 answers
Text Wrapping not happening as it should in NSTextField Attributed String
I am having an issue with text not wrapping correctly if there is a single quote, or macOS ASCII Extended Character #213 (shift+opt.+]) in a string.
Apple does not escape the media item title string when it is retrieved through the iTunesLibrary…

SouthernYankee65
- 1,129
- 10
- 22
0
votes
1 answer
How to colour individual rows in Cell-Based NSTableVew in Swift 5
I am trying to show items in NSTableView but one of them (the item that previously was activated by an action (its name is stored in alreadyActivatedItem variable)) should be disabled and shown with a red text.
So far I managed to make disabling…

DevyV
- 15
- 3
0
votes
1 answer
How to get contents of a NSTextFieldCell in a cell-based outline when the user quits while editing
The previous version of this question was closed because the moderator did not recognize that this is a cell-based Outline not a view-based outline. The answer the moderator suggested does not work for a cell-based outline.
The question as…

Carl Carlson
- 500
- 4
- 17
0
votes
0 answers
How to get contents of NSTextFieldCell when user Quits while editing NSTextFieldCell NOT NSTextField
The previous version of this question was closed because the moderator did not recognize that this is a cell-based Outline not a view-based outline. The answer the moderator suggested does not work for a cell-based outline.
The question as…

Carl Carlson
- 500
- 4
- 17
0
votes
2 answers
Cell-based NSTableView with custom Cell binding
A cell-based NSTableView has Name column with a NameCell derived from NSTextFieldCell in which, besides the text it draws a custom pie progress indicator (in the very same cell, not in a separate column).
It mimics the one in Finder's Name column,…

WorkingClassHero
- 27
- 4
0
votes
2 answers
How to setup a NSTableView with a custom cell using a subview
I am trying to setup a NSTableView with a custom cell using an ArrayController and Bindings. To accomplish this I added a subview to the custom cell. The data connection seems to work somewhat. Though, there seems to be a redraw problem which I…

JJD
- 50,076
- 60
- 203
- 339
0
votes
1 answer
How to access an NSNumberFormatter in a text field cell?
In XCode 3.2.x's Interface Builder this was simple enough, selecting the text cell displayed a small icon for the formatter that could be selected to configure the formatter in the attributes pane.
Now in XCode 4, the formatter icon is gone! If I…

izk
- 1,189
- 2
- 8
- 23
0
votes
0 answers
drawWithFrame: draws NSTextFieldCell background out of registration with frame
I'm failing to have a NSTextFieldCell created and drawn programmatically recreate the same visual appearance equivalently-configured NSTextFieldCells have when built in Interface Builder and drawn automatically by Cocoa.
Context is a custom…

Nicholas Jackiw
- 75
- 7
0
votes
1 answer
Update NSTableView after cell modification
I'm a newbie in Objective c and Cocoa, and I have some troubles with using NSTableView (Cell based NSTableView). I have two questions
First I want to automatically to update some data in the tableview once the user hits enter after modifying a cell.…

Laz22434
- 373
- 1
- 12
0
votes
1 answer
Text disappears in subclass of NSTextFieldCell
I've spent many hours trying to figure this one out with no luck. Someone had a similar problem on the Apple mailing lists a while ago and no one answered. Basically, it comes down to this: I've subclassed NSTextFieldCell and overridden the…

danjonweb
- 456
- 3
- 14