nsmenuitem
adding NSSubmenu item in NSMenuItem
I want to add a drop down menu in one of the entries in the NSMenu Item. (eg. If you click on the Battery indicator on Finder bar, it has an option for Show->Icon,Time,Percentage).[详细]
2023-01-12 14:23 分类:问答Cocoa custom view for NSMenuItem
I am developing a small app that display the active mounts in a menu in the NSStatusBar. So far it looks like this:[详细]
2023-01-09 22:03 分类:问答NSMenuDelegate questions
I have an NSMenu which contains both static and dynamically created NSMenuItem\'s (static meaning NSMenuItem\'s created in Interface Builder, dynamic meaning NSMenuItem\'s created at run-time). Althou[详细]
2023-01-09 20:51 分类:问答NSMenuItem Hidden binding issue
I have an NSMenuItem which I have bound to an NSUserDefaults boolean value in IB. When the variable bMenuHidden is true, I would like my NSMenuItem to be hidden, and vice versa. This works as expecte[详细]
2023-01-08 10:19 分类:问答Programmatically adding glyphs (delete key, backspace, space, etc) to menu item
开发者_JAVA百科It used to be that in Carbon you could use SetMenuItemKeyGlyph. What\'s the alternative under 10.6? Will I need to use undocumented goodness or...?[详细]
2023-01-07 14:52 分类:问答Selecting the first item in a popUpContextMenu
I work on a very keyboard intensive application. Both hands on the keyboard. No hands on the mouse. A user can, via the keyboard, popup a context menu, select an item and finally hit enter.[详细]
2023-01-05 21:15 分类:问答NSMenuItem number bubble?
I have seen something like this: in a Menulet on the right of menu i开发者_JS百科tems and I can\'t figure out how to do it.[详细]
2023-01-05 17:55 分类:问答An NSMenuItem's view (instance of an NSView subclass) isn't highlighting on hover
I need to use a custom NSView subclass to draw some content, but it isn\'t drawing as highlighted when the user hovers and it doesn\'t dismi开发者_StackOverflowss the NSMenu when the user clicks on it[详细]
2023-01-01 00:04 分类:问答Getting a particular menu item from MainMenu
I have a nib (winA.xib) that contains a window. My app delegate contains an NSWindowController subclass called WinAController.[详细]
2022-12-31 03:11 分类:问答How do I set the sender on a NSMenuItem's action?
开发者_如何学JAVAThe Apple documentation says that the sender passed to the NSMenuItem\'s action can be set to some custom object, but I can\'t seem to figure out how to do this. Is there a method I\'[详细]
2022-12-30 16:50 分类:问答