• 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: Change text size in NSTables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change text size in NSTables


  • Subject: Re: Change text size in NSTables
  • From: "I. Savant" <email@hidden>
  • Date: Fri, 7 Apr 2006 08:35:35 -0400


On Apr 7, 2006, at 1:54 AM, Jonathan wrote:
But it seemed to direct me to how to change to a different font, and to the
row height, but not to just change the size of the font being used.

Wouldn't this indicate to you, then, that the size is an attribute of the font? Read the documentation on NSFont. It seems to me that all your questions could be answered if you'd dig just a little bit deeper. We all have to do it and there's no getting around it.


You'll have to hand the table view a new font. You can first get the table's original font instance and modify its size and pass it back to the table. Or you can just create a brand new font instance of the specified size and hand it to the table.

Also, for a better overview of fonts, the Font Handling documentation (which is referenced by NSFont's documentation would do you worlds of good here:

http://developer.apple.com/documentation/Cocoa/Conceptual/ FontHandling/index.html

--
I.S.



_______________________________________________
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


References: 
 >Re: Change text size in NSTables (From: Jonathan <email@hidden>)

  • Prev by Date: Re: bindings screwup
  • Next by Date: Setting the default font of an NSTextView...
  • Previous by thread: Re: Change text size in NSTables
  • Next by thread: Re: Change text size in NSTables
  • Index(es):
    • Date
    • Thread