nsmenuitem
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 分类:问答Update NSMenuItem while the host menu is shown
I have an NSMenuItem that I need to update to show a progress (like Time machine does with it\'s backup). The problem is that when I set a new title on that NSMenuItem and the title is not changing.[详细]
2023-03-12 01:38 分类:问答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 分类:问答NSMenuItem's NSView not highlighting in submenu
I have an NSStatusItem that displays an NSMenu full of NSView subclasses. I override drawRect: in my NSView subclass to implement highlighting in the NSMenu and everything works fine in the root menu,[详细]
2023-03-11 04:15 分类:问答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 分类:问答Best way to wire up NSMenuItems from Interface Builder?
So I\'ve spent some time checking out CocoaDev, reading the Cocoa docs on NSMenuItems, and doing some tests in Interface Builder.[详细]
2023-03-03 05:36 分类:问答How do you hide a Menu Item with a custom view?
I am using a very simple custom view (containing only a read-only NSTextField and an NSSegmentedControl) in an NSMenuItem (using the -setView: method). This part works as expected.[详细]
2023-03-02 18:10 分类:问答Cocoa Key Equivalent in Menu is not working
I have created a NSStatusItem and I have assigned two key equivalents within interface builder (Xcode 4.0). These are for the preference menu cmd-, and the quit option cmd-q. Both of these will work w[详细]
2023-02-28 12:11 分类:问答NSMenuItem custom view problems [duplicate]
This question already has an answer here: Gap above NSMenuItem custom view (1 answer) Closed 8 years ago.[详细]
2023-02-28 01:13 分类:问答