Skip navigation.
 
mlWeird NSFontManager Behavior
FROM : Andre Schnoor
DATE : Wed Mar 26 21:32:45 2008

Hi All,

hopefully someone can shed a bit light on this strange issue:

[[NSFontManager sharedFontManager]
   fontWithFamily: @"Lucida_Grande"
   traits: NSUnitalicFontMask | NSBoldFontMask
   weight: 0.5
   size: 14.0]

delivers the correct font when the application was launched by double-
clicking on its icon, but returns nil when the app was launched from a 
shell:

/path/to/MyApp.app/Contents/MacOS/mybinary

How can that happen? How is NSFontManager supposed to be influenced by 
the way an application was launched?

Any hint is appreciated.

Andre

Related mailsAuthorDate
No related mails found.