Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8787347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:52:09+00:00 2026-06-13T21:52:09+00:00

I have a NSMenu coming down under a NSStatusItem . I also have a

  • 0

I have a NSMenu coming down under a NSStatusItem. I also have a NSSpeechRecognizer. When the NSMenu is open, the speech recognizer does not function properly. It will constantly show that it’s receiving sound, until I close the menu. I need it to detect sound properly even while the menu is open.

How can I make the speech recognizer detect sound even while the menu is open? Does it need to become a “first responder” and take precedence over the menu?

I tried setting [speechRecognizer setListensInForegroundOnly: NO] and it still won’t work.

If you don’t understand, I am more than happy to provide clarification.

Here are some similar situations, but I don’t yet fully understand.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:52:10+00:00Added an answer on June 13, 2026 at 9:52 pm

    The problem is most likely that the menu is running a modal run loop as long as it is open (for the purposes of tracking the mouse, etc…) and this is blocking the NSSpeechRecognizer‘s ability to function normally.

    You can confirm this by bringing up the menu and then pausing into the debugger. You’ll likely see two run loops; the outer, normal, one and one deeper down the stack that is running the modal loop.

    In general, this is kind of an odd thing to do from a user interaction perspective. The whole point of a pop-up menu is to offer the user some commands that will be done after the corresponding menu item is selected.

    If you really need “click this thing and recognize voice”, I’d recommend a button that, maybe, pops up a bit of UI and then interacts with the speech recognizer without using a menu?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an NSStatusItem that displays an NSMenu full of NSView subclasses. I override
I have an NSMenu which opens when a user clicks an NSStatusItem in the
I have an NSMenu (belonging to an NSPopUpButton ) where the NSMenuItem all have
I have an NSMenu (let's say the Main Menu), with lots of NSMenu s
I have an NSMenu instance, through which all communication with the Cocoa app will
I have created a simple NSStatusBar with a NSMenu set as the menu. I
I have an NSMenu that I want to update with items pushed to my
I have an NSPopUpButton inside a trackingArea. Now when I open the PopUp and
Have not done this before, so obviously I suck at it. Here 64 pixels
have a php code like this,going to convert it in to C#. function isValid($n){

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.