• 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: 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


  • Prev by Date: NSTableView fontSize
  • Next by Date: Re: NSStepper, NSDatePicker
  • Previous by thread: NSTableView fontSize
  • Next by thread: path name from Apple Event
  • Index(es):
    • Date
    • Thread