Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Global Font Change



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.