Re: Global Font Change
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