The NSTableCellView class of Cocoa, is a reusable container view shown for a particular cell in an NSTableView instance that uses rows for content.
Questions tagged [nstablecellview]
124 questions
1
vote
1 answer
How to set a background color for NSTableCellView?
I've made an NSTableCellView in my nib, which has the textField occupying the entire space, and it works great for displaying text, and tracking the size of the column.
Now I want to be able to set a solid background color for it, in a specific case…

user3404855
- 215
- 1
- 9
1
vote
1 answer
NSTableView: How to resize text in cells correctly
I need to increase the font size in an NSTableView (view based mode) to allow for better readability in some kind of a presentation of my app.
Changing the font works fine within - (NSView *)tableView:(NSTableView *)tableView…

janu
- 71
- 1
- 7
1
vote
1 answer
How to change appeareance of the view based tableviews during editing process?
I’m developing my first app for Mac OS X. It allows to edit the tableviews’ contents and I want to recreate behavior of how the cells are edited in the Things App. It should work like this: double click on the cell should start advanced editing of…

surganov
- 400
- 7
- 18
1
vote
2 answers
Customized NSTableCellView's IBOutlet is null
I have a NSTableView, its data source and delegate have been set. And I want to customize the cell, so I dragged a view-based cell view from the library. Then I created a class ServiceCell which inherits from NSTableCellView in order to fully…

GraphicSound
- 35
- 2
- 4
1
vote
1 answer
NSTableCellView customization in MAC OS
I want to subclass NSTableCellView with XIB. I am new on MAC OS programming.
This is what I have done on :
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
if (tableView ==…

Devang
- 11,258
- 13
- 62
- 100
1
vote
0 answers
Text is not displayed in "SourceList" Outline View
I am using a "SourceList" OutlineView and cannot get the content of the "header" and "data" NSTableCellViews to display. The structure of the OutlineView works and my app runs and looks similar to this, https://i.stack.imgur.com/0E4D8.png.
Here is…

user2825377
- 11
- 3
1
vote
0 answers
NSTableView headerView similar to Tweetbot for Mac
I'm trying to figure out a way to load two NSTableCellView's in one NSTableView. Basically, I'm trying to replicate UITableView's functionality of loading sections with different UITableView cells.
Two of my ideas were;
1. Two seperate…

Anthony Castelli
- 567
- 6
- 17
1
vote
1 answer
Bind view based NSTableView to an NSArrayController
I want to bind programmatically my NSTableView to an NSArrayController.
Everything works fine with Cell-Based Table using:
[[table tableColumns][0] bind:NSValueBinding toObject:board.dataSource withKeyPath:@"arrangedObjects.name" options:nil];
but…

danielemm
- 1,636
- 1
- 14
- 24
1
vote
2 answers
How to convert Cell-based table into View-based table in cocoa?
I'm having hard time understanding how to implement view-based table in cocoa. Right now I have working implementation of old-fashioned cell-based table. As I figured out, just dragging the NSTableCellView onto my columns in a NIB file won't make my…

Eugene Gordin
- 4,047
- 3
- 47
- 80
1
vote
1 answer
Is it possible for a view-based NSTableView to draw outside the row bounds?
I have an NSTableView with 2 columns. Each column contains a different NSTableCellView subclass and in some situations I'd like to achieve an overlapping effect, so for example the top of the view in column 1 row 1 could be positioned above the…

martinjbaker
- 1,424
- 15
- 23
1
vote
1 answer
set NSButton position inside NSTableView to center programmatically
Is it possible to set the "position" value (see image below) programmatically instead of using IB?
I would need to set it like the one in the image.
I've been searching for a solution for a while now without luck.

sharkyenergy
- 3,842
- 10
- 46
- 97
1
vote
1 answer
NSTableCellView and NSArrayController - Mac OSX
Is it possible to bind a NSArraycontroller with NSTableView whose cells are not text cells but nstablecellview? I'm new to cocoa programming, tried searching on this but no proper explanation on this.

DesperateLearner
- 1,115
- 3
- 19
- 45
1
vote
0 answers
Drawing a line above first NSTableCellView
How can I draw a single line above my NSTableCellView?
I understand that on iOS I might use a section header but I'd rather not use something like NoodleKit just for the dark line.
Some alternatives I've thought of that I don't like:
1) Custom…

aroooo
- 4,726
- 8
- 47
- 81
1
vote
0 answers
How to update the visual aspects of a NSTableCellView?
I have a custom NSTableCellView with 2 NSTextFields, 1 NSProgressIndicator and 2 Buttons.
I want to hide 1 button and the Progress Indicator when I reload the Table. The problem is if my NSTableView is hidden, when I reload it, the visual gets…

Pedro Vieira
- 3,330
- 3
- 41
- 76
1
vote
0 answers
NSTableCellView subclass for disclosure button like in Console.app
In my NSTableView, I'd like to have cells like Console.app: with a disclosure triangle button on left to expand the line if text is truncated.
Someone advised me to subclass NSTableCellView, but after few tries, I'm lost between programming and…

Tom
- 613
- 6
- 14