Re: NSTableView fontsize
Re: NSTableView fontsize
- Subject: Re: NSTableView fontsize
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 8 Feb 2004 15:35:01 +0100
At 9:01 Uhr -0500 08.02.2004, Koen van der Drift wrote:
- (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.
If nobody has any better solutions to offer, you can try returning
an NSAttributedString instead of an NSString from your data source.
Give the NSAttributedString the attributes you want and the table
will use them to draw it.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.