Reputation: 2762
I'm making a table view which has a custom table header. So, I really want to change a height of the header. It's not easier work than I think. How can I make a success?
In addition, I try to make a subclass of NSTableHeaderCell, and override drawInteriorWithFrame:inView: method to draw anything. How can I change a frame's rect to be passed to the method. If I control this rect, I think the I'll reach my goal.
Upvotes: 1
Views: 1684
Reputation: 3629
You can accomplish this by setting the frame of the header.
NSTableHeaderView *tableHeaderView = [[NSTableHeaderView alloc] initWithFrame:NSMakeRect(0, 0, 120, 60)];
[_tableView setHeaderView:tableHeaderView];
Upvotes: 1