I found a bunch of people asking this (remove or disable the recent-items s开发者_运维技巧ubmenu) and no answers.
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
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.
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
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.
This question already has an answer here: Gap above NSMenuItem custom view (1 answer) Closed 8 years ago.
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.
I need to be able to dynamically modify an开发者_Go百科 NSMenu hierarchy each time it is shown (add/remove items etc).For example:
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:
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