nsmenuitem
Using NSProgressIndicator inside an NSMenuItem
I\'m trying to use a NSProgressIndicator (indeterminate) inside of a statusbar-menu. I\'m using an NSView-object as view for the menuitem, and then subviews the progress indicator to display it. But w[详细]
2023-02-03 16:59 分类:问答Gap above NSMenuItem custom view
I am using the setView: method on an NSMenuItem to set a custom view. In this custom view there is an image which takes the whole of the view. The NSMenuItem with this custom view is the first in the[详细]
2023-02-01 19:26 分类:问答Problem with disappearing NSMenuItems
I disabled \"auto-enables menu items\" for my app\'s main menu in Interface Builder because I need to disable some menus when certain views are lo开发者_如何学Caded. I am running into a problem though[详细]
2023-02-01 19:22 分类:问答Animated progress bar in NSMenuItem
I want to put an animated progress bar in an NSMenuItem custom view. This is demonstrated in Apple\'s MenuItemView sample, but it doesn\'t animate (at least not in 10.5, and the sample is apparently f[详细]
2023-01-23 22:05 分类:问答Why cannot I open the Preferences from each windows?
I have come across this Cocoa application (source code) that shows a main Window. As long as this window is key it is possible to open the Preferences window from the Main menu as well as by hitting[详细]
2023-01-23 16:50 分类:问答Reverse engineering an NSMenu for a Status Bar Item
I\'m want to create a menu for a status bar item like the one seen in Tapbot\'s PastebotSync application:[详细]
2023-01-23 09:15 分类:问答Loading NSView subclass from a XIB
I need to use a custom view into a NSMenuItem. I\'ve created a new view XIB and customized the view in it. How can I load that view and set it in the NSMenuItem using the setView: method?[详细]
2023-01-16 13:02 分类:问答Displaying custom/arbitrary controls in an NSMenu
How can I Display an NSTextField or an NSProgressIndicator within an NSMenu? I\'m looking to do something simila开发者_如何学JAVAr to the Spotlight icon menu, or the Help menu of most applications.You[详细]
2023-01-14 15:45 分类:问答Sync state of two NSMenuItems
I have two NSMenus with the same NSMenuItems. Only one NSMenuItem in its NSMenu should be selected. (Kind of like an NSMatrix). So I connected each NSMenuItem to the same action and added an iVar for[详细]
2023-01-13 18:08 分类:问答how to set focus on NSMenu (make it get key events)?
I have a status menu with a NSSearchField and menu items.开发者_如何学编程 When search field is active and user presses up & down arrows, I\'d like to start menu tracking, that is that the user wi[详细]
2023-01-13 00:22 分类:问答