• 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: NSTableView fontsize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView fontsize


  • Subject: Re: NSTableView fontsize
  • From: Todd Lair <email@hidden>
  • Date: Tue, 10 Feb 2004 02:06:23 -0500

If it is a programatical (new word!) solution that you want, I just did this, and you want to set the font on each of your dataCell's for the columns. Then, and very importantly, call the table's tile method. This adjusts the row height and sets the view needing display. It took me a while to figure out that tile method (a long while which most was spent on trying to figure out myself how to calculate the new row height and set it). tile, once I found it, made things so much more easier!

Just in case.. save you the time that sunk into the deep dark black abyss of wrong directions for me. ;)


On Feb 8, 2004, at 1:01 PM, Theodore Petrosky wrote:

JMHO

but you are doing this in the 'wrong' place. you
should be doing this method when you are creating the
cell.. or maybe in the awakeFromNib.. but not here.

I am creating my NSpopupbuttons programatically and I
do it there and it works.

Ted

On Feb 8, 2004, at 6:01 AM, Koen van der Drift wrote:

How do I set the font size of an NSTableView? I
looked in IB, but
there is no setting for it. I also tried to do it
programmatically,
based on some info I found in the archives:

- (void)tableView:(NSTableView *)aTableView
willDisplayCell:(id)cell
forTableColumn:(NSTableColumn *)tableColumn row
(int)rowIndex
{
[cell setFont: [NSFont fontWithName:
@"Geneva" size:11.0] ];
}

But this doesn't change the font either.

How do I do this?

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: NSTableView fontsize (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: catching uncaught exceptions
  • Next by Date: Simple File Data Reading Question
  • Previous by thread: Re: NSTableView fontsize
  • Next by thread: is there something with the switch statement
  • Index(es):
    • Date
    • Thread