osx,cocoa,nstableview,nstableviewcell
If all the content rows in your table are the same size, you can use the NSTableView size inspector to specify the size. If you do this, the system-added 'padding' rows will have this size also. To get rid of the grid lines associated with the system-added rows, the snippet...
osx,swift,cocoa,nstableview,nstableviewcell
I'd try just giving the default cell your own identifier in Interface Builder... ...then just use that in conjunction with makeViewWithIdentifier:: func tableView(tableView: NSTableView, viewForTableColumn tableColumn: NSTableColumn?, row: Int) -> NSView? { var viewIdentifier = "StandardTableCellView" if let column = tableColumn { switch column.identifier { case "nameColumn": viewIdentifier = "nameCellView"...
osx,swift,cocoa,nstableview,nstableviewcell
You need to drop the new cell view in the table column that would contain that kind of cell view (the one whose identifier is "valueColumn", in this case).
ios,uitableview,uidatepicker,nstableviewcell
The accessoryView of a UITableViewCell is surely not what you think : it's the little view at the right of the cell, typically, it's an arrow, and it's pretty small, not made to be the width of the screen at all. You should try adding your view to the contentView....
cocoa,swift,nstableview,nstableviewcell
Try: var cell = tableView.makeViewWithIdentifier("MainCell", owner: self) as SubclassOfNSTableCellView ...