I am currently trying to learn a bit of Cocoa (using the book Cocoa Programming for Mac OS X). In one of the exercises, we set up a NSTableView with only one column, to act as a
I had to use both steps - sam's answer + the comment by David Douglas.
[tableView setColumnAutoresizingStyle:NSTableViewUniformColumnAutoresizingStyle]; [tableColumn setResizingMask:NSTableColumnAutoresizingMask]; //AND [tableView sizeLastColumnToFit];