How do I hide an NSTableView header completely, so that it does not take any space up?
+2
A:
In Interface Builder, select the table view, open the attributes inspector (command-1), and uncheck the "Headers" checkbox in the "Columns" section.
Brian Webster
2010-08-18 19:33:58
+1
A:
To do this programmatically, you can subclass NSTableView (or any NSTableView child class) and return nil for the headerView variable:
@interface AppTableView : NSTableView {
}
@end
@implementation AppTableView
- (NSTableHeaderView *)headerView{
return nil;
}
@end
Scott Harwell
2010-10-27 19:52:47