nsmenuitem
Updating A Dynamically Created NSMenu with NSMenuItems
I have a NSMenu with 3 static NSMenuItems that I want to keep, and a bunch after that are dynamically generated and should be removed and reloaded each time the user clicks the menu icon.[详细]
2023-04-05 01:49 分类:问答How to connect a menu item to a custom action defined in the NSApplication delegate across nib files?
In my Cocoa app I have two NIB/XIB files that I need to connect: MainMenu.xib: contains a custom object for the NSApplication delegate object and connects it to the proper outlet in the NSApplicatio[详细]
2023-04-04 05:53 分类:问答Set an NSButton's action to be the same as an NSMenuItem's
In my开发者_JAVA百科 application, I save user preferences and one of the preferences is whether to show any NSMenuItems as buttons in the home window. I don\'t have problems to create the buttons dyna[详细]
2023-04-03 19:27 分类:问答Getting textual input from a menubar app? Cocoa
So I created a menubar app (agent application) and I need to find some way to get textual input via the menubar icon. I heard that making a popup modal with a textfield is frowned upon, and putting a[详细]
2023-03-31 23:00 分类:问答Populate a NSMenu from an NSArray with NSMenuItems - Need Alternative Suggestions
So I have the following code: - (void)addSupportLinksMenuItems { NSString *subMenuTitle; NSString *getURL;[详细]
2023-03-30 04:53 分类:问答Where to implement methods for menu item that is not window dependent (Cocoa OSX
I currently implement most of the functions for my mainMenu in a NSWindowController subclass, this works fine for most functions but I would like to be abl开发者_开发百科e to use some menu items when[详细]
2023-03-27 06:16 分类:问答Certain key equivalents cannot be used for NSMenuItem
I have an NSMenuItem for which I would like to use the key equivalent Command-Option-C. However, when I s开发者_如何学编程et the key equivalent in IB, it does not get associated with the menu item whe[详细]
2023-03-23 17:39 分类:问答How can I get a NSMenuItem from a submenu?
I have a reference to the o开发者_如何转开发utermost menu, but I\'m trying to get a reference to an NSMenuItem that\'s nested in a submenu:[详细]
2023-03-23 05:40 分类:问答Creating NSMenu with NSMenuItems in it, programmatically?
First, I\'d like to point out that this question is probably already asked, I just couldn\'t find any answers from them.[详细]
2023-03-21 00:24 分类:问答How to remove NSMenuItem gap above custom view
I was looking for something discussed in following posts. Gap above NSMenuItem custom view. Reverse engineering an NSMenu for a Status Bar Item[详细]
2023-03-18 05:40 分类:问答