How to create a menu when a user right-clicks on the dock-icon of cocoa app on Mac?
Thank you very much in advance!
Max
实现applicationDockMenu:
在您的app委托中返回您要使用的菜单。
或者,在MainMenu.xib中,创建一个NSMenu实例并将其连接到NSApplication的dockMenu
插座。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.