• 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
Repost: NSFont userFontOfSize vs setUserFixedPitchFont
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Repost: NSFont userFontOfSize vs setUserFixedPitchFont


  • Subject: Repost: NSFont userFontOfSize vs setUserFixedPitchFont
  • From: David Rehring <email@hidden>
  • Date: Thu, 03 Jan 2002 20:37:27 -0800

I'm reposting this hopefully to actually get a response this time around...

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!


  • Follow-Ups:
    • Re: Repost: NSFont userFontOfSize vs setUserFixedPitchFont
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: The Ultimate Cocoa Development Language
  • Next by Date: Re: The ULTIMATE Cocoa Development Language
  • Previous by thread: Re: DO and authentication
  • Next by thread: Re: Repost: NSFont userFontOfSize vs setUserFixedPitchFont
  • Index(es):
    • Date
    • Thread