nsstatusitem
Detect click on OS X menu bar?
I\'m curious if the开发者_JAVA百科re\'s a trick to detecting a click on the Menu Bar as a whole. I know I can detect a click on an NSStatusItem or NSMenu, but I am looking for events pertaining to the[详细]
2023-03-31 16:31 分类:问答Getting the screen position of a non-view based NSStatusItem
My application makes use of an NSStatusItem. I need to grab the screen coordinates for the status item, but since I have no need for the functionality offered by setting a custom view for the item I a[详细]
2023-03-26 11:39 分类:问答How to detect if NSStatusItem is displayed in status bar?
My Mac OS X application has a NSStatusItem. It works fine, however, I just discovered that apparently if there are too many items in the top menu/status bar (for instance, if an app has 开发者_如何学[详细]
2023-03-23 13:17 分类:问答Dismiss Custom Window for NSStatusItem
I\'ve got a custom window popping up when an NSStatusItem is clicked. The code is based on MAAtachedwindow. Everything is working great but I can\'t figure out a way to dismiss the window when the use[详细]
2023-03-22 17:12 分类:问答NSStatusItem right click menu
I\'m working on a status bar app that has a left and right click. I\'ve got the start of this working by following the tips from other posts but I\'m not sure how to go about showing a menu on right c[详细]
2023-03-22 10:38 分类:问答How to create a NSWindow inside a menulet [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-03-17 12:43 分类:问答How to keep focus on NSStatusItem until toggling it again
I\'m building an app the uses a NSStatusItem. I\'m wanting my NSStatusItem to open when clicked and stay open until the user clicks the NSStatusItem again. As of right now, it opens the menu but the N[详细]
2023-03-16 09:34 分类:问答Cocoa: Auto close a status menu
I hava a status menu on the status bar, and I have some tasks running behind the scene. When one of task is done, assume at the time the menu is being showed (dropped down), I want to make the menu to[详细]
2023-03-12 06:48 分类:问答Fake NSWindow with a NSView inside a NSMenuItem
Before I start I should say I know this seems like a long shot, however I figured it was worth a try.[详细]
2023-03-11 05:03 分类:问答Remove highlight from NSMenuItem after click?
I have added a custom view to my subclass of NSMenuItem (which sits in a NSS开发者_高级运维tatusMenu), which means that by default it will not get \"highlighted\" with a blue/gray background.[详细]
2023-03-09 06:36 分类:问答