NSFont userFontOfSize vs setUserFixedPitchFont [resent using correct account]
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!