Re: NSTableView fontsize
Re: NSTableView fontsize
- Subject: Re: NSTableView fontsize
- From: Shaun Wexler <email@hidden>
- Date: Sun, 8 Feb 2004 06:54:22 -0800
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?
That method would have tremendous overhead!!!
All you need to do is select the NSTableView or its enclosing
NSScrollView in IB, and with IB's Font panel, select the font you wish,
and it will be applied to all of the prototype cells in the table.
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
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.