What does -didToggleAccessStatus: do? Where is your program stuck? You can potentially see that by taking a process sample (using Activity Monitor or the sample command). Or you can just stop the program in the debugger and see where the various threads are stopped.
Post
Replies
Boosts
Views
Activity
Assuming your app is an LSUIElement or, equivalently, its activationPolicy is .accessory, then it's not the frontmost application. Some other application is frontmost and displays its main menu in the menu bar. A standard item in the application menu of normal applications is Hide <App Name>. That item's standard keyboard shortcut is Command-H. That's probably overriding your menu item's keyboard shortcut. After all, Command-H can only be associated with one active menu item at a time.Try using a different shortcut.