Drgan,

> 
> On Oct 21, 2022, at 05:37, Dragan Milić via Cocoa-dev 
> <cocoa-dev@lists.apple.com> 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 <rsomers...@gmail.com> 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 (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/admin.szatmari.net%40gmail.com
> 
> This email sent to admin.szatmari....@gmail.com
_______________________________________________

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

Reply via email to