Re: Set focus on NSTextField in an NSMenuItem

2022-10-21 Thread Sandor Szatmari via Cocoa-dev
Try observing mouse events and calling [NSApplication activateIgnoringOtherApps:YES] In the mouse down event… that works for me… see Dragan’s plist settings for the correct way to remove from Dock et all… Sandor > On Oct 21, 2022, at 15:44, Richard Charles wrote: > >  >> On Oct 21, 2022,

Re: Set focus on NSTextField in an NSMenuItem

2022-10-21 Thread Sandor Szatmari via Cocoa-dev
Drgan, > > On Oct 21, 2022, at 05:37, Dragan Milić via Cocoa-dev > wrote: > >  >> 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]

Re: Set focus on NSTextField in an NSMenuItem

2022-10-21 Thread Dragan Milić via Cocoa-dev
> 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