With Xcode 9.2, I'm working on a macOS project with two different windows.
In one of the windows, I have a view-based tableView with one column, the header of the column is regularly shown. In another window, there is a similar tableView, but the header (which is visible in IB), at runtime is not shown.
I compare the properties of the two tableViews in IB but they are the same. Also, the Header checkbox in the Table View section (which has a role in this UI element, as described in a reply to this question Hiding NSTableView header?) is checked.
What could the problem depend on?
TableView Properties pane:
Interface Builder:
Runtime:
Edited:
class EditTasksController: NSViewController, NSTableViewDelegate, NSTableViewDataSource {
override func viewDidLoad() {
super.viewDidLoad()
self.actionsListTableView.dataSource = self
self.actionsListTableView.delegate = self
actionsListTableView.backgroundColor = NSColor.clear
actionsListTableView.headerView = nil
func tableViewSelectionDidChange(_ notification: Notification) {
...