Questions tagged [nstableviewcell]
120 questions
0
votes
3 answers
macOS NSTableView cell does not do anything
I have this line "func tableView(_ tableView: NSTableView, didClick tableColumn: NSTableColumn) {code here}"
This function does not do anything. I want to click a row in a table view and do some action when clicked it. But it does not do anything.…

Tamillarocks
- 1
- 2
0
votes
0 answers
Drag and Drop Custom TableViewCell of NSTableView
#define MyPrivateTableViewDataType @"MyPrivateTableViewDataType"
//add line in your awakeFormNib method
[self.tableView registerForDraggedTypes:[NSArray arrayWithObject:MyPrivateTableViewDataType]
// This method is called
…

Sangram Shivankar
- 3,535
- 3
- 26
- 38
0
votes
1 answer
NSComboBoxCell won't display values
So I have a perfect working NSTableView for a Mac App. I added a new column on it, and I am trying to set it as Combo, but I am facing a lot of issues.
First is, if I drag and drop the NSComboBoxCell on the Storyboard, it will lose all my other…

Walucas
- 2,549
- 1
- 21
- 44
0
votes
0 answers
I wonder if NSTableViewCell could have wide cell than it's width (hidden contents)
UITableview only has one volume and some cell could move it's contents left or right using swift to see it's hidden(?) contents.
like
| --- iPhone width --------- |
| --- showing contents --- | hidden contents |
I would like to make my…

WoffOVkee
- 435
- 3
- 16
0
votes
2 answers
NSTableView on load set Selected table cell view
I have a NSTableView that manages my navigation on the left hand side of my application. Depending on what day it is when the app first loads it should auto select that day.
My question is how do I select a row programatically when the view…

Eli
- 668
- 2
- 13
- 37
0
votes
1 answer
NSTableView rowForView is always -1
I have a NSTableView with view based cells, TaskCell and NonTaskCell, and i create them like this:
func tableView (tableView: NSTableView,
viewForTableColumn tableColumn: NSTableColumn?, row: Int) -> NSView? {
let cellRow = row
var…

Cristi Băluță
- 1,295
- 15
- 27
0
votes
0 answers
NSTableView reuse View Pool size
I was looking for leaked items on my project when I saw that an NSTableView had 35 views attached. I thought that it may be some bug I added to the project since the NSTableView doesn't show more than 10 items at a time, so I tried to figure out why…

Jorge Martín
- 268
- 3
- 13
0
votes
1 answer
How to receive mouseDown messages in a NSTableViewCell?
I am trying to make a table view cell that shows ratings for songs in a playlist. I have successfully created the cell so that it shows the current number of stars, and also an indication of how a new setting will be when you hover your mouse…

RoyGal
- 176
- 7
0
votes
1 answer
How to get custom table cell views into NSTableView?
I have a NSTableView that uses mostly standard NSTextTableCellViews but I want some other cells that contain another UI component in my table in one or two rows. The question is: Where do I define those custom cells so that Cocoa finds them?
I just…

BadmintonCat
- 9,416
- 14
- 78
- 129
0
votes
1 answer
Adding UIDatePicker to cell content view
I'm attempting to put an instance of UIDatePicker in the accessory view of a UITableView cell, and have been following this SO thread as a template. However, it looks as if the picker is being placed above the cell entirely:
Below is the code I'm…

narner
- 2,908
- 3
- 26
- 63
0
votes
2 answers
Multiple cells that don't exist on NSTableView
I have a NSTableView with 3 cells. I have adjusted that table view to show the separators, by using this code:
[self.tableView setGridColor:[NSColor lightGrayColor]];
[self.tableView setIntercellSpacing:NSMakeSize(1, 1)];
[self.tableView…

UFO
- 219
- 3
- 8
0
votes
1 answer
Get a reference to an extra text field in an NSTableCell
I made a subclass of NSTableCell and made it the data source and delegate of the table.
The table is view based.
The cell was an image and text cell that i added an extra text field into.
I have a referencing outlet for the extra field in the…

Gary Simpson
- 2,677
- 2
- 17
- 18
0
votes
1 answer
What's an elegant way to draw different text-color of attributed text on selection in Cocoa NSTableCellView
I have an NSTableCellView in a view based NSTableView which displays attributed text. So some of the words displayed are f.e. red, some blue, some bold, some normal.
The cell has white background, but as soon as the user clicks on one of the cells,…

Georg
- 3,664
- 3
- 34
- 75
0
votes
1 answer
Custom NSTableCellView
I want to make a NSTableView with customs NSTableCellView, here's what I've done so far :
AppDelegate.h :
#import
#import "TheView.h"
@interface AppDelegate : NSObject

Antoine
- 331
- 1
- 11
0
votes
1 answer
Autolayout inside a view-based NSTableView
I have an NSTableView (view-based) that creates a row;
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
TaskTableCellView *tableCellView = [[TaskTableCellView alloc] init];
…

XeroxDucati
- 5,130
- 2
- 37
- 66