nsmenu
Remove the "Open Recent" menu item in Cocoa apps
I found a bunch of people asking this (remove or disable the recent-items s开发者_运维技巧ubmenu) and no answers.[详细]
2023-03-12 05:07 分类:问答why the subclass of NSMenu not responding?
I created a menu resource in a separate xib file, made it to be a subclass NSMenu like the following, and the file\'s owner to be the StatusMenu[详细]
2023-03-09 22:22 分类:问答Remove highlight from NSMenuItem after click?
I have added a custom view to my subclass of NSMenuItem (which sits in a NSS开发者_高级运维tatusMenu), which means that by default it will not get \"highlighted\" with a blue/gray background.[详细]
2023-03-09 06:36 分类:问答NSTextfield + NSMenu and first responder
I\'m trying to implement my own autocomplemention system (result is pull from an sqlite database) I\'ve set up a NSTextField and the appropriate delegate. Each time the text in the NSTextField change[详细]
2023-03-07 01:27 分类:问答How do you hide a Menu Item with a custom view?
I am using a very simple custom view (containing only a read-only NSTextField and an NSSegmentedControl) in an NSMenuItem (using the -setView: method). This part works as expected.[详细]
2023-03-02 18:10 分类:问答NSMenuItem custom view problems [duplicate]
This question already has an answer here: Gap above NSMenuItem custom view (1 answer) Closed 8 years ago.[详细]
2023-02-28 01:13 分类:问答Create NSMenu for NSStatusBar.systemStatusBar programmatically
I\'m trying to create a simple menu in the System Status Bar using code only.I\'m not receiving any compilation or runtime errors but I see no effect at all.[详细]
2023-02-19 02:27 分类:问答Modify NSMenu structure on each open?
I need to be able to dynamically modify an开发者_Go百科 NSMenu hierarchy each time it is shown (add/remove items etc).For example:[详细]
2023-02-17 01:33 分类:问答NSView's context NSMenu is never shown even though all the right methods are being called
I have an NSCollectionView with a bunch of NSViews in it, stacked vertically, to make it look a bit like UIKit\'s UITableView. Everything works as expected, except for one thing:[详细]
2023-02-10 16:50 分类:问答set titles of items in my app's main menu?
I am trying to change the titles of some of the items in m开发者_开发知识库y Cocoa app\'s main menu.I have tried setting them both within IB and also programmatically from my app\'s applicationDidFini[详细]
2023-02-10 01:46 分类:问答