• 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: Global Font Change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Global Font Change


  • Subject: Re: Global Font Change
  • From: j o a r <email@hidden>
  • Date: Thu, 31 Jan 2008 13:16:27 -0800


On Jan 31, 2008, at 1:05 PM, Chris Schmitt wrote:

How do I change the font that is used for all NSLabels, NSTextFields, etc..? Basically I want to make the default font smaller for all text within my application, not the menu bar or anything outside my application, just my views, and windows.. Is this done through skinning or is this a global property that can be set?


There is no global switch to get what you're asking for, and typically that's not what you want either (you might want to have *most* of your controls in one particular size, but very rarely all of them). You, the programmer or interface designer, will have to manually make sure that all controls in your interface is using the font size you want.

You might want to look at the documentation for NSControlSize. This is a way to easily make controls appear at one of a predefined set of sizes. You can set this property from Interface Builder or in code. If you set it from code, you might also have to set the font size separately (I don't remember, and don't think, that it's updated automatically for you).

j o a r


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Global Font Change
      • From: Chris Schmitt <email@hidden>
References: 
 >Global Font Change (From: Chris Schmitt <email@hidden>)
 >Re: Global Font Change (From: "Kyle Sluder" <email@hidden>)
 >Re: Global Font Change (From: Chris Schmitt <email@hidden>)

  • Prev by Date: Re: Global Font Change
  • Next by Date: Re: Global Font Change
  • Previous by thread: Re: Global Font Change
  • Next by thread: Re: Global Font Change
  • Index(es):
    • Date
    • Thread