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
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 mails | Author | Date |
|---|---|---|
| No related mails found. | ||






Cocoa mail archive

