Menu
  • HOME
  • TAGS

Multiple cells that don't exist on NSTableView

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...

How to get NSTableView to use a custom cell view mixed with preset cell views?

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"...

How to get custom table cell views into NSTableView?

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).

Adding UIDatePicker to cell content view

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....

Get a reference to an extra text field in an NSTableCell

cocoa,swift,nstableview,nstableviewcell

Try: var cell = tableView.makeViewWithIdentifier("MainCell", owner: self) as SubclassOfNSTableCellView ...