• 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
Re: NSFontPanel for a modal window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFontPanel for a modal window


  • Subject: Re: NSFontPanel for a modal window
  • From: Graham Cox <email@hidden>
  • Date: Sat, 13 Jun 2015 17:17:54 +1000

> On 13 Jun 2015, at 3:08 pm, Kurt Sutter <email@hidden> wrote:
>
> I then bring up the font panel calling [NSFontPanel sharedFontPanel]
>
> The font panel comes up, and does not have key focus


Just asking for the sharedFontPanel isn’t enough. You still need to show it using -makeKeyAndOrderFront:, and as an NSPanel subclass, you might also need to -setWorksWhenModal:YES and -setBecomesKeyOnlyIfNeeded:YES.

By the way Apple, the Font Panel sucks. Please give it some love in 10.11

—Graham



_______________________________________________

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: NSFontPanel for a modal window
      • From: Kurt Sutter <email@hidden>
References: 
 >NSFontPanel for a modal window (From: Kurt Sutter <email@hidden>)

  • Prev by Date: Re: Language options: Objective-C, Swift, C or C++?
  • Next by Date: Re: NSFontPanel for a modal window
  • Previous by thread: NSFontPanel for a modal window
  • Next by thread: Re: NSFontPanel for a modal window
  • Index(es):
    • Date
    • Thread