Re: Set focus on NSTextField in an NSMenuItem

2022-10-18 Thread Eric Schlegel via Cocoa-dev
> On Oct 18, 2022, at 9:43 AM, Dragan Milić via Cocoa-dev > wrote: > > Hi all, > > I’m developing a tiny application, which has an NSStatusItem instance with a > menu. One for the menu items of the menu has a custom view, which is either > an NSTextField instance, or in can even be an

Re: Set focus on NSTextField in an NSMenuItem

2022-10-18 Thread Dragan Milić via Cocoa-dev
> On 18. 10. 2022., at 19:11, Alex Zavatone wrote: > > I am speaking from an iOS perspective but, is there something like > makeFirstResponder? Yes, there is. It should be sent to an NSWindow instance and I tried to do that in -[NSMenuDelegate menuNeedsUpdate:], or -[NSMenuDelegate

Re: Set focus on NSTextField in an NSMenuItem

2022-10-18 Thread Alex Zavatone via Cocoa-dev
I am speaking from an iOS perspective but, is there something like makeFirstResponder? Sent from my iPhone > On Oct 18, 2022, at 6:44 PM, Dragan Milić via Cocoa-dev > wrote: > > Hi all, > > I’m developing a tiny application, which has an NSStatusItem instance with a > menu. One for the

Set focus on NSTextField in an NSMenuItem

2022-10-18 Thread Dragan Milić via Cocoa-dev
Hi all, I’m developing a tiny application, which has an NSStatusItem instance with a menu. One for the menu items of the menu has a custom view, which is either an NSTextField instance, or in can even be an NSView instance containing the NSTextField instance (the latter approach enables me to