On Jun 13, 2015, at 12:08 AM, Kurt Sutter <k...@quansoft.com> 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]
> 
> The font panel comes up, and does not have key focus. When I now click a new 
> font in the font panel, nothing happens, changeFont: of my view is not 
> called. Only when I make the font panel the key window, operations in the 
> font panel send a changeFont: message to my view. This is, however, not 
> standard behavior (see e.g. TextEdit) where the key focus remains with the 
> text window and you still can click a new font in the font panel to change 
> the text in the text window.
> 
> I have tried setting delegate of NSFontManager and/or of the font panel, and 
> also the target of the font panel, all to non avail.
> 
> When I show my window in non-modal mode, things work as expected, but that is 
> not an option for the time being.

Have you implemented any method with the selector changeFont: in any of your 
classes which might be in the responder chain?

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to