Allow an NSWindow (NSPanel) to float above full screen apps

前端 未结 3 1898
醉梦人生
醉梦人生 2021-02-10 00:09

I\'m trying to add a little window that provides \"quick input\" from any place in the system to the main app.

The user could hit a hotkey, the window pops up, and float

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-10 00:48

    The Swift 3.0 version of your self-answer is

    window.level = Int(CGWindowLevelForKey(.mainMenuWindow))
    window.collectionBehavior = [.canJoinAllSpaces, .fullScreenAuxiliary]
    

提交回复
热议问题