nsmenuitem
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 分类:问答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 分类:问答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 分类:问答NSTableView and NSSearchField in an NSView, which is the outlet of an NSMenuItem, don't work
I\'m having an NSView, which is set as the view: outlet of an NSMenuItem. The view contains an NSTableView (inside an NSScrollView) and an NSSearchField. The NSMenu is shown when the user clicks a spe[详细]
2022-12-23 08:03 分类:问答NSMenu problems showing/hiding HUD NSPanel
Still having great difficulty with this problem. Any suggestions? I cannot find a simple tutorial online that explains the basics of NSPanel windowing as different from NSWindow.[详细]
2022-12-20 17:20 分类:问答Getting NSPopUpButton from NSMenuItem
My application uses the -validateMenuI开发者_开发问答tem: method for validating menu items. But I need to validate different menu items depending on what popup\'s there in.[详细]
2022-12-18 10:53 分类:问答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 分类:问答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 分类:问答