Yes, you are right. The actual showing of the font panel occurs by calling
NSFontManager* shrdFontMgr = [NSFontManager sharedFontManager];
[shrdFontMgr orderFrontFontPanel:textView];
This shows the font panel, but does not make it active. When I click into a new
font of that fon
> On 14 Jun 2015, at 2:30 pm, Kurt Sutter wrote:
>
> It does not help — the panel i actually already in front when it appears, and
> calling -orderFront: does not help. It only works when it is the key window.
OK, it’s time to show your code.
What’s odd is that you say your font panel is vis
> On 14 Jun 2015, at 14:32, Uli Kusterer wrote:
>
> On 13 Jun 2015, at 21:30, Kurt Sutter wrote:
>> It does not help — the panel i actually already in front when it appears,
>> and calling -orderFront: does not help. It only works when it is the key
>> window.
>
> Coming late in here: Have y
On 13 Jun 2015, at 21:30, Kurt Sutter wrote:
> It does not help — the panel i actually already in front when it appears, and
> calling -orderFront: does not help. It only works when it is the key window.
Coming late in here: Have you remembered to uncheck “visible on launch” in the
XIB for that
I’’m surprised that no one else has suggested looking at the TextEdit source.
It’s available from Apple as a sample…
That should be rather revealing.
- Jack
> On Jun 13, 2015, at 10:00 PM, Kurt Sutter wrote:
>
> Good point. Yes, I have some changeFont: selectors in some of my classes, but
> I
Good point. Yes, I have some changeFont: selectors in some of my classes, but I
don’t think any of them should be in the responder chain in that situation.
Anyway, when I place stops in each of them, I see that none of them gets called
until I make the font panel the key, whereupon the changeFon
On Jun 13, 2015, at 12:08 AM, Kurt Sutter wrote:
> I have a modal window (run with [NSApp runModalForWindow:]) that sports a
> view that is a descendant of NSTextView. The view has key focus and text is
> selected therein. I then bring up the font panel calling [NSFontPanel
> sharedFontPanel]
It does not help — the panel i actually already in front when it appears, and
calling -orderFront: does not help. It only works when it is the key window.
Kurt
> On 14 Jun 2015, at 01:40, Graham Cox wrote:
>
>
>> On 13 Jun 2015, at 6:33 pm, Kurt Sutter wrote:
>>
>> Calling setWorksWhenModal
> On 13 Jun 2015, at 6:33 pm, Kurt Sutter wrote:
>
> Calling setWorksWhenModal:YES and/or setBecomesKeyOnlyIfNeeded:YES does not
> seem to resolve the issue either.
>
> I am at a loss here.
>
What happens if you set those to YES first, then show it with -orderFront:
(i.e. without the makeK
Thanks, Graham!
However, I don’t want the panel to get key focus by default. Just as in
TextEdit, the font panel should come up, the focus should however remain with
the text window. The user can then e.g. click another font in the font panel
(which will update the font in the text window) and
> On 13 Jun 2015, at 3:08 pm, Kurt Sutter 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
11 matches
Mail list logo