Re: NSFontPanel for a modal window
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