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 <rsomers...@gmail.com> wrote: > > >> On Oct 21, 2022, at 6:57 AM, Sandor Szatmari via Cocoa-dev >> <cocoa-dev@lists.apple.com> wrote: >> >> Understood. I DON’t get the behavior your seeing where the menu closes. >> Perhaps because I’m calling it from a different point in code. I am calling >> [NSApplication activateIgnoringOtherApps:YES] in my listener/observer to the >> mouseDown action. > > > I made a test MenuBarApp. To get the main menu of the app to not show I had > to hide the running app. But when the app is hidden, the text field in the > menu of a status bar item will not accept responder events. > > Perhaps you should try using a text field in a popover like spotlight search. > > Richard > _______________________________________________ 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