• 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
Weird NSFontManager Behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird NSFontManager Behavior


  • Subject: Weird NSFontManager Behavior
  • From: Andre Schnoor <email@hidden>
  • Date: Wed, 26 Mar 2008 21:32:45 +0100

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Leopard on PPC
  • Next by Date: Re: Leopard on PPC
  • Previous by thread: Re: Question regarding NSDictionary and saving a 'tree structure'
  • Next by thread: How to get current renderer for an NSOpenGLView?
  • Index(es):
    • Date
    • Thread