Re: Changing the header size of a NSTableView
Re: Changing the header size of a NSTableView
- Subject: Re: Changing the header size of a NSTableView
- From: Bruno Blondeau <email@hidden>
- Date: Wed, 31 Oct 2001 10:06:32 +0100
>
On Sunday, October 28, 2001, at 10:57 am, Bruno Blondeau wrote:
>
>
> I'd like to to change the height of the header of a NSTableView.
>
>
>
> NSTableHeaderView doesn't seem to contain anything to help me, and
>
> changing
>
> manually the font size using InterfaceBuilder doesn't make the header
>
> higher.
>
>
>
> Any advice?
>
>
None, The NSTableHeaderView draws its header at a fixed size regardless of
>
the font. You should file a bug.
What should I do as a workaround meanwhile?
Would sublassing -(NSRect)headerRectOfColumn:(int)columnIndex (in
NSTableHeaderView) work?
If I subclass NSTableHeaderCell (and especially override -setSize), would
the height change?
Also, I have never been able to make editing start properly in a
NSTableHeaderCell editWithFrame (editor seems to remain behind the header).
Is this supported? Am I doing something wrong?
NSText * editor = [[myTableView window] fieldEditor:YES forObject:cell];
[cell editWithFrame:[[myTableView headerView]
headerRectOfColumn:colIndex] inView:[myTableView headerView] editor:editor
delegate:self event:nil];
Bruno