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
4
votes
1 answer
Autolayout in an NSView being used as a cell for NSTableView
I am trying to build an NSTableView similar to how Things does it's layout.
I assume what they are doing is using an NSTableView with a custom-drawn NSTableCell -- or perhaps it's an NSSegmentedControl. I am attempting to go down the NSTableCell…

XeroxDucati
- 5,130
- 2
- 37
- 66
3
votes
0 answers
How to add a plus button next to the disclosure button for group row in NSOutlineView?
I would like to add a button next to the disclosure button like in Mail.app.
And I don't want to do it like this in Photos.app.
I had a look at the answers in this question but they are about customising existing disclosure buttons which I do not…

user10711707
- 135
- 1
- 7
3
votes
0 answers
NSOutlineView row not editable by "Return" key anymore after reloading a different table view cell
I'm running into the strangest issue with my NSOutlineView:
Everything is set up in a storyboard, i.e. the outline view and two NSTableCellViews
The two cell views are mostly the same, only one shows an icon, the other one doesn't
I can begin…

Mark
- 6,647
- 1
- 45
- 88
3
votes
2 answers
How to create table with highlighted-on-mouseover cells on macOS cocoa?
I'm trying to create a tray popover app with table very similar to the one Dropbox has in it's popover view.
There is a table of files and when you hover mouse over a table cell, cell will highlight and show additional controls.
I'm not sure if…

mixtly87
- 1,675
- 15
- 32
3
votes
1 answer
NSTableView with two custom table cell views alternating per row (MacOS)
I have a single column, view-based NSTableView in which I want to place two different custom cell views, one alternating with the other in each row, like so:
Odd rows: OddRowNumberCellView.
Even rows: EvenRowNumberCellView.
There a solution for iOS…

Gordon Salter
- 33
- 3
3
votes
1 answer
Updated NSTableCellView.textField NOT updated in table display.
I have a feeling this table cell display problem has a simple answer but, I clearly need greater wisdom than mine to find it.
Here's my textbook controller, delegate and datasource class for the table and the enclosing view ...
import Cocoa
class…

Rojer
- 33
- 4
3
votes
2 answers
NSTableView - select row and respond to mouse events immediately
I have a view based NSTableView in which the cells contain a number of controls including text fields and edit fields. When a user tries to click on a control within a cell in order to, for example, start editing a text field, the click's main…

tarmes
- 15,366
- 10
- 53
- 87
2
votes
1 answer
Set the outlet of the item in TableCellView within the .xib file to the custom NSTableCellView subclass
I want to fill my NSTableView with content. Per table-cell-row are 3 items (2 NSTextFields and 1 NSImageView). For that I created a custom NSTableCellView where I want to set the @IBOutlets of the 3 Items, to set there the value for them. But when I…

Jozott
- 2,367
- 2
- 14
- 28
2
votes
2 answers
delete and add row in view Based NSTableView
I did IOS development but new to OSX. I am facing problem that I delete the row in NStableView successfully by clicking the button in row of table but when I click on add button the deleted row appears again and then its not deleted.
Here is my…

Ahmed Khan
- 75
- 6
2
votes
1 answer
NSOutlineView - Get NSTableCellView for a Given Item
My view-based outline view displays a custom context menu (right-click menu) for its rows.
One of the menu items on the menu is "Rename...", and the menu item's representedObject property is set to the object represented by the outline view row:
…

Nicolas Miari
- 16,006
- 8
- 81
- 189
2
votes
1 answer
How to properly create a NSTableCellView with a table that has dynamically created columns
I'm trying to create a desktop application for macOS using Swift 3.
My window has two view-based tables, where one table shows a list of packets with the size of the payload. When a packet is selected, the second table shows the payload bytes.…

feks88
- 21
- 1
2
votes
0 answers
Auto resize nstable row according to text
I am very new to Mac development, I wish to create a chat application in OS X using swift language, I am using NStableView to display the messages, The height of the table row should be wrap according to the text size just like the following images…

Amith
- 1,907
- 5
- 29
- 48
2
votes
1 answer
Custom view in NSTableView / NSOutlineView
I have a view-based NSOutlineView that I am providing a custom view (a subclass of NSTableCellView) for one of the columns. I am registering this subview using:
let nib = NSNib(nibNamed: "MyMatcherView", bundle:…

Craig Edwards
- 2,118
- 1
- 18
- 23
2
votes
3 answers
Issue with tracking on mouse event while scrolling in NSTableCellView
I have popover buttons on custom table cell view and when the mouse cursor moves over one cell, these buttons of the cell will be displayed and only this one cell should show the buttons. If i move the mouse cursor slowly, everything work correctly…

Quang Nguyen
- 354
- 1
- 5
- 20
2
votes
1 answer
NSCollectionView inside NSTableCellView doesn't resize
I want to show a NSCollectionView inside a NSTableCellView. I have it setup correctly, and it works for the most part, but the collectionView's scrollview doesn't seem to resize properly against the NSTableCellView, even though I have auto-layout…

Z S
- 7,039
- 12
- 53
- 105