OK, this has gone completely in the wrong direction. Let's go back to your original issue. Well, issues, plural.The first thing: If you look at this documentation page:https://developer.apple.com/documentation/appkit/nstableview/1535482-makeviewwithidentifieryou'll see that the method gets a new or existing cell. There is absolutely no need to create your own cell manually if makeViewWithIdentifier fails. The older documentation that you linked to is essentially wrong on this point.Instead, if makeViewWithIdentifier returns nil, your code should assert, because this is a programmer error — you haven't configured something correctly in IB.The second thing is that the table cell is almost always a subclass of NSTableCellView. NSTextField is not. When you create a table view in IB, it preconfigures the column to contain a NSTableCellView with a NSTextField as a subview, connected to the parent NSTableCellView's textField outlet. You need to return a NSTableCellView, not a NSTextField.The third thing is
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: