• 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
NSFont userFontOfSize vs setUserFixedPitchFont [resent using correct account]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFont userFontOfSize vs setUserFixedPitchFont [resent using correct account]


  • Subject: NSFont userFontOfSize vs setUserFixedPitchFont [resent using correct account]
  • From: David Rehring <email@hidden>
  • Date: Sun, 30 Dec 2001 23:17:10 -0800

I'm creating YALA [yet another logging application] and want to save/restore
the font the user selects for the logged text.

These two methods seem ideal [ie, setUserFixedPitchFont: saves both the font
name and the font size to my applications 'defaults' file].

However, userFontOfSize: has the following interface:

+ (NSFont *)userFixedPitchFontOfSize:(float)fontSize

So, to 'load' the default font, I need to give it some information that it
has already stored.

Could someone who knows explain how I'm supposed to use this API?

Am I supposed to save the font size myself in a separate defaults value?
Am I supposed to read the key that setUserFixedPitchFont: saved and pass it
to this method?
Something behind door number 3?

Later,
--
David Rehring Psychos do not explode when light hits
Senior Software Engineer them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!


  • Prev by Date: Appending NSStrings to an NSTextView
  • Next by Date: initialFirstResponder
  • Previous by thread: Re: Appending NSStrings to an NSTextView
  • Next by thread: initialFirstResponder
  • Index(es):
    • Date
    • Thread