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

NSFontManager Initialization


  • Subject: NSFontManager Initialization
  • From: Gordon Apple <email@hidden>
  • Date: Sun, 02 Mar 2008 16:29:59 -0600

    I am using NSFontManager and NSFontPanel to (eventually) extract a glyph
as a draw object.  The following code fails unless the font panel has
previously been used in a text field.

    NSFontManager* fmgr = [NSFontManager sharedFontManager];
    NSFont* theFont = [fmgr selectedFont];

    After I select the font and size in the panel, "theFont" will always
return nil.  If I first use the panel with a text view, it will work
properly.  Also, a few times, I couldn't set the size in the panel's size
field.  Bug report time? Or is there something else I could do to get it
properly initialized?

_______________________________________________

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

  • Follow-Ups:
    • Re: NSFontManager Initialization
      • From: Aki Inoue <email@hidden>
  • Prev by Date: Re: NSString and string contains
  • Next by Date: Re: Reading word at mouse pointer w/o Universal Access
  • Previous by thread: Re: NSString and string contains
  • Next by thread: Re: NSFontManager Initialization
  • Index(es):
    • Date
    • Thread