nsmenu
NSMenuItem not responding to setIndentationLevel:
If I call setIndentationLevel: on an NSMenuItem then nothing happens, if I call indentationLevel on it after I set it to 3, it returns 3 like it should. I\'m adding the menu items to the Dock menu and[详细]
2022-12-24 16:36 分类:问答How to make an NSMenu recent list
I\'m working on a small URL shortening application for someone, and I need to have a list, similar to that of Droplr\'s, that has all of the recently shortened URLs. The list should be a submenu of th[详细]
2022-12-21 10:45 分类:问答How to add multiple menu items with the same title to NSPopUpButton(NSMenu)?
As docs say it\'s impossible to add two menu items to NSPopUpButton if they both have the same title. I was trying to add menu items to [popupButton menu], but with no luck. I was also trying to creat[详细]
2022-12-20 20:51 分类:问答Force NSMenu (nested submenu) update for Main Menu of Cocoa App
I have some submenu inserted as Window item submenu of Main Menu I have an instance of my object (let\'s assume its class name is MenuController) inherited from NSObject and supports 2 from NSMenuDel[详细]
2022-12-19 12:44 分类:问答Looking for popUpMenuPositioningItem:atLocation:inView: equivalent for 10.5
I\'m working on an application that needs to display a context menu on screen in various scenarios. In the function I\'m writing, I don\'t have access to any NSWindows or NSViews. I\'d like to use pop[详细]
2022-12-18 23:45 分类:问答Disabling/enabling an application menu item
In trying to learn the very fundamentals of menu handling. My test app\'s menubar has 3 menus -- namel开发者_JAVA百科y \"TestApp\", \"File\" and \"Help\". I find I can remove these menus entirely, sim[详细]
2022-12-17 10:48 分类:问答Can't populate NSMenu from document controller
I\'ve a MainMenu.xib and a MyDocument.xib. I need to dynamically populate some NSMenuItem\'s from my document controller but I\'m at a loss on how to get to it from MainMenu.xib.[详细]
2022-12-16 23:06 分类:问答NSView in NSMenu -- how to make "key" for accepting keyboard commands [specifically, return]
I have a text field and a button living in a view inside a menu item. The button submits the string in the text field to a function, and that works fine. However, I\'ve also set the button\'s key equi[详细]
2022-12-13 13:42 分类:问答Custom NSStatusItem with custom view - Use NSWindow, NSView, custom NSMenuItem?
I\'m trying 开发者_开发问答to create a LSUIElement app that behaves like Spotlight, CoverSutra and other apps of that type. I managed to create a custom NSStatusItem, which popups up an NSWindow but t[详细]
2022-12-11 12:57 分类:问答How to associate an action to a keyboard shortcut?
I\'ve an IBAction that calls up a pa开发者_开发技巧nel. I want to invoke that action with a keyboard shortcut but I\'m at a loss on how to do it.[详细]
2022-12-10 22:13 分类:问答