我正在构建一个状态栏应用程序(Swift 3),并且想要根据用户点击左侧还是右侧来调用不同的操作。这是我到目前为止: var statusItem = NSStatusBar.system().statusItem(withLength: -1)
statusItem.action = #selector(AppDelegate.doSomeAction(sender:))
let left
在使用Visual Studio 2015中的C++编码的应用程序中,目标是跨平台(当前支持Windows和Linux),是否可以从Apple的Appkit访问NSEvent?作为一个例子,说一个人想要检索iOS用户按下了哪个鼠标按钮:在Visual Studio中编码的C++应用程序是否可以检索函数pressedMouseButtons()的结果,也就是说,你Appkit的NSEvent对象的一