• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing the header size of a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Question about "swappable" views
  • Next by Date: Rép : How show a sheet ?
  • Previous by thread: Re: Changing the header size of a NSTableView
  • Next by thread: Whats Wrong?
  • Index(es):
    • Date
    • Thread