nsmenu
Sharing NSMenuItems across multiple NSMenus
I\'ve got multiple menus in the same application and would like to share submenus between them. For simplicity\'s sake, let\'s say one is the main menu, the other the dock tile menu..[详细]
2023-01-11 18:31 分类:问答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 分类:问答How can you update an NSMenu while it is active (visible)?
I have an NSMenu instance, 开发者_StackOverflowthrough which all communication with the Cocoa app will take place. If the menu is open, the background doesn\'t run, so how can I force an update while[详细]
2023-01-02 14:15 分类:问答NSMenu doesn't start tracking
I have a little cocoa app which usually operates in the background (as agent). Sometimes I\'d like to be able to popup a contextmenu (no window or s.th. visible at this time).[详细]
2022-12-30 05:21 分类:问答How does Apple update the Airport menu while it is open? (How to change NSMenu when it is already open)
I\'ve got a statusbar item that pops open an NSMenu, and I have a delegate set and it\'s hooked up correctly (-(void)menuNeedsUpdate:(NSMenu *)menu works fine). That said, that method is setup to be c[详细]
2022-12-29 16:54 分类:问答Add a Contextual Menu to WebView
An easy one, I think: I want to add a contextual menu to a WebView. In IB, I added a NSMenu to the NIB, connected it to the WebView\'s menu outlet, launched and expected to be able to control-click[详细]
2022-12-29 13:26 分类:问答Cocoa: Changing object property from different menu items
What\'s the rule of thumb if I want to change observed object\'s sin开发者_运维知识库gle property from different menu items (think - list of options).[详细]
2022-12-28 17:49 分类:问答First item in an NSMenu does not appear
I am making my own NSMenu programmatically and popping it up when a button is pressed. I create NSMenuItems and add them with the NSMenu method 开发者_如何学编程insertItem:atIndex:.[详细]
2022-12-27 19:15 分类:问答Alternative Menu Items in NSMenu
I have an NSMenu that contains NSMenuItems with custom views.I want it so that when the alt button is pressed, the menu items would change part of their look (through their view).I found setAlternativ[详细]
2022-12-26 00:16 分类:问答