• 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: "Kyle Sluder" <email@hidden>
  • Date: Thu, 31 Jan 2008 16:17:26 -0500

On Jan 31, 2008 4:05 PM, Chris Schmitt <email@hidden> 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?

Neither.  When you toss an NSTextField into a window, for example, IB
creates a new NSTextField, which is archived into the nib.  Included
in this information is the font used to display the cell contents.
When your app loads the nib, the NSTextField is awoken with the
properties it was frozen with.  So there's no room in this model for
things like "global font preferences."  They simply wouldn't be used.

This is a Good Thing.  Otherwise, the appearance and necessary
dimensions of your controls would never be reproducible.

HTH,
--Kyle Sluder
_______________________________________________

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

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: Leopard ignores setControlTint: ?
  • Index(es):
    • Date
    • Thread