Re: NSTableView fontSize
Re: NSTableView fontSize
- Subject: Re: NSTableView fontSize
- From: Kiel Gillard <email@hidden>
- Date: Sun, 14 Aug 2005 21:10:20 +1000
Hi Robin,
To change the font size of text in the table view you need to:
1) Get the dataCell of the tableColumn(s).
2) Use the NSCell's instance method setFont: to the font of your
choosing.
In code, this would be:
[[tableColumn dataCell] setFont:[NSFont systemFontOfSize:11.0]];
Hope this helps,
Kiel :-)
"Put your hand on a hot stove for a minute, and it seems like an
hour. Sit with a pretty girl for an hour, and it seems like a minute.
THAT'S relativity."
Albert Einstein
Hi,
How do I set the fontSize in a NSTableView?
I tried the follwing, but that doesn't work.:
- (void) awakeFromNib
{
[self setFont:[NSFont systemFontOfSize:11.0]];
}
Thanks,
Robin Hermann
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden