Do you create the tableView in IB ?If so, look at hierarchy of objects in IB for the viewController.Should haveView ScrollView ClipView TableView Column1 => That's the identifier you use TableCellView => That's the identifier you have to use TableViewCell Column2Do you get this ?Then set the identifier for the tableViewCell (if you have multiple columns, if they use the same cell prototype, just need to define once.Note: you could also give the same identifier for each column and its tableCellView (not the TableViewCell !) and keep using your code.To check the problem is caused by the identifier, add a print:extension RegistrationReportsViewController: NSTableViewDelegate { func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? { if tableColumn == nil { return nil } // Extra safety if let cell = tableView.makeView(withIdentifier: (tableColumn!.identifier), owner: self) as? NSTableCellView { let column = tableView.tableColumns.firs
Topic:
Programming Languages
SubTopic:
Swift
Tags: