Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the header size of a NSTableView



> 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


References: 
 >Re: Changing the header size of a NSTableView (From: Vince DeMarco <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.