site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:date:cc:in-reply-to:from:subject :mime-version:content-transfer-encoding:from:to:cc:subject:date :message-id:reply-to; bh=Z8OynQzPwHCLhz4Eh3KvwYxbsG+M3KKagAArSprMivI=; b=qVleNh4D/YmF4HbPCIxlvGBeLLPQ01REYMWZGnjwi+u8wYT8mq9I9EiXDq07fUlGsX C3iCX1GB55jCtZrQ6bFHyp7LK3l/9ntUXrE3t/KzyftqJw7s5EZMdSHgLJQptg05o+zW n+q4/8FFHJIE/viXwNpWyy+5gvhVlwR3hOifTnvzIhQ+jLQ1/LwzpizFTtcXiC0misBw 8+zAgNEi3dDafK07axHZ7eSMw2GDt/a613SijLCd28KAGqs12fYxnuMwPB4A9P5kP17D pIHGJZJz8lJsLBgF2FmqBcDGu2Ov0bODI48BL2DlgGSqZSAjBBwwS9w6NiT/sp+Q0KYr bOJA== 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 <rsomers124@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...
This email sent to admin.szatmari.net@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/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com