Re: Set focus on NSTextField in an NSMenuItem
Re: Set focus on NSTextField in an NSMenuItem
- Subject: Re: Set focus on NSTextField in an NSMenuItem
- From: Dragan Milić via Cocoa-dev <email@hidden>
- Date: Fri, 21 Oct 2022 11:36:25 +0200
> On 20. 10. 2022., at 01:22, Sandor Szatmari wrote:
>
> I have a status item and in order to get it to show I have to call this in my
> code that orders in the view/window
>
> [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]
>
> I have no idea if this is the best way to accomplish this, but it works for
> me…
> On 21. 10. 2022., at 04:49, Richard Charles <email@hidden> wrote:
>
> In a macOS document based application I added a menu item to a submenu and
> set the view of the menu item to a NSTextField. This was done using Interface
> Builder. It works just fine.
Sandor, Richard… I know guys… Please read my latest reply in this thread and
the explanation why I couldn’t set the focus on a text field inside a menu.
-- Dragan
_______________________________________________
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