NSOutlineView as class type for CustomView in IB?

Can NSOutlineView (or NSTableView) be used as the custom class type for a Custom View in IB?

Trying to use an NSOutlineView as one view in a stack view, and I don't want the scroller that usually comes with it (the stack view is in a scroller).


So far I can get my controller and the outline view to load. But the outline has no columns yet. When I try to add one programmatically via addTableColumn, it appears to succeed, but looking at the tableColumns array in the NSTableView baseclass the array is nil and remains nil after calling addTableColumn.

Is this a known limitation/bug with trying to do this from IB?

Hmm. When created from code, the tableColumns array is initialized to an empty array. When created via the custom class mechanism the tableColumns array is initialized to nil. Calling addTableColumn in the latter case then just fails.

NSOutlineView as class type for CustomView in IB?
 
 
Q