想知道如何使用Swift /MacOS在这里添加像这样的菜单项:
我找到的最接近的是位于顶部导航栏右上角的adding a "status icon" to the system-wide icons。但我想添加菜单项到顶部栏,如图所示。
发布于 2018-08-09 07:01:42
下载这个项目修复了它:https://lapcatsoftware.com/articles/working-without-a-nib-part-10.html它看起来需要在applicationWillFinishLaunching
方法中完成。
https://stackoverflow.com/questions/51755838
复制相似问题