Repost: NSFont userFontOfSize vs setUserFixedPitchFont
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!