Questions tagged [nstableviewcell]
120 questions
1
vote
1 answer
Trying to use NSTableView
I'm an iOS dev and I'm creating my first Mac app. Running into some difficulties when trying to use NSTableView.
extension HomeViewController:NSTableViewDataSource{
func numberOfRows(in tableView: NSTableView) -> Int {
…

Rutger Huijsmans
- 2,330
- 2
- 30
- 67
1
vote
1 answer
NSTableView Table View Cell Memory Issue
I have a very strange issue where cells when re-rendering the NSTableView seem to get random coloring and display text. This is MacOS not iPhone.
I use a dictionary in the variable data to display the results into the table.
It's easiest to show…

Joseph Astrahan
- 8,659
- 12
- 83
- 154
1
vote
1 answer
Objective C-OSX How to change color of NSTableViewCell when selecting?
there are 3 cell in my table view
my table is view base table
my requirement is when i select any cell(click on any row) text color and background color of that(selected cell) table view cell change
user5772785
1
vote
1 answer
How to remove imageview from super view in cocoa?
When I reload the NSTableView imageview of cell is overwrite. How to remove imageview from superview in cocoa?
I have tried below code:
NSImageView *tabIconImageview1=[[NSImageView alloc]initWithFrame:NSMakeRect(45, 12, 40,…

princ___y
- 1,089
- 1
- 9
- 27
1
vote
1 answer
Multiple Lines in NSTextFieldCell
How can I have multiple lines in my NSTextFieldCell in my NSTableView? By this I mean have multiple lines of data:
Ex
Stack Overflow www.stackoverflow.com
turns into this:
Stack Overflow
www.stackoverflow.com

Matt S.
- 13,305
- 15
- 73
- 129
1
vote
0 answers
How to correctly create a custom NSTableViewCell and load it from nib?
I found some guidelines for creating something similar for UITableView, but I'm interested in how it's done for Mac OS X.
I have done the following:
I have an NSTableView with two columns. For the first row, the template TableCellView "Image &…

nik4emniy
- 143
- 1
- 9
1
vote
1 answer
When NSTableview Load second time its customcell Subview's change it's position how to solve
I am new for cocoa OSX application might be this question is simple but i try my best to find out this issue and at the end i asking question here.
I am creating NSWindowViewController and in side it i Used NSTableview with Customcell. In…

Nitin Gohel
- 49,482
- 17
- 105
- 144
1
vote
3 answers
How to select one NSCell in an NSTableView?
I have a small NSTableView with a checkbox. Whenever the checkbox is not checked, I want one of the adjacent NSCells to be grayed out and inaccessible.
However, I can't figure out how to address only one specific cell. -dataCellForRow of…

bastibe
- 16,551
- 28
- 95
- 126
1
vote
1 answer
Binding to NSTextField Cell not working, edited value resets to default
I'm working on a Core Data document application that dynamically creates NSTableColumns. The data cell type may be a checkbox, slider, etc. Programmatically binding to all cell types works, except for NSTextFieldCell.
All NSTextFieldCells fail to…

cygnus6320
- 11
- 3
1
vote
1 answer
Custom Table Cell View doesn't get modified when load table data
I have a little problem with a custom NSTableCellView.
The problem: I have a Table View in a Nib with all stuff configured as well to load data from an array. For now, is OK. The problem is, while the app is preparing the views (using method…

melchor629
- 242
- 3
- 11
1
vote
0 answers
how to display a NSPopup from NSTableViewCell
I'm developing an app for OSX in Xcode5
I want to display a popover after a user ends editing a tableview cell what am I doing is the following:
-(void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn…

Jesus
- 8,456
- 4
- 28
- 40
1
vote
2 answers
Detect start of cell editing in cell-based NSTableView
I have some editable cells in an NSTableView.
I enter a cell by double clicking on it. I have other buttons on the window. Any time I click on a button, this terminates the cell editing in a way I just get nothing in the cell and the NSTableView is…

fredzouille
- 137
- 5
1
vote
1 answer
How to programmatically retrieve table selection and table row for Core Data app?
I'm trying to make a Core Data app in which when you select one "Player" in a TableView, and a list of all teammates appears in a second tableView, with a column for how many times those two players have played on the same "Team" (another…

DanF
- 589
- 4
- 23
1
vote
1 answer
How to mange cell color style while navigating back , each time
I have one table view in which i am displaying some record. And navigte to second view, in second view controller we have four options as primary, secondary, tertia, quatrnary. when user select any of this optin it will navigate to back and selected…

user2902101
- 493
- 1
- 9
- 17
1
vote
2 answers
Intercept Keydown Actions in an NSTextFieldCell
I have a cell-based NSOutlineView which displays NSTextFieldCell objects.
I'd like to respond to keydown or keyup events so as to make the text contained in the NSTextFieldCell bold when the text contains certain preset keywords. What is the most…

VikR
- 4,818
- 8
- 51
- 96