How to listen to global hotkeys with Swift in an OS X app?

前端 未结 6 1763
北荒
北荒 2020-12-12 17:08

I\'m trying to have a handler in my Mac OS X app written in Swift for a global (system-wide) hotkey combo but I just cannot find proper documentation for it. I\'ve read that

6条回答
  •  情深已故
    2020-12-12 17:46

    Take a look at the HotKey Library. You can simply use Carthage to implement it into your own app. HotKey Library

提交回复
热议问题