Drgan,

> 
> On Oct 21, 2022, at 05:37, Dragan Milić via Cocoa-dev 
> <[email protected]> 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] 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 protected]> 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.

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.

Sandor

> 
> 
> -- Dragan
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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/admin.szatmari.net%40gmail.com
> 
> This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to