nstouchbar

How get an item in control center of Touch Bar on the right?

时光毁灭记忆、已成空白 提交于 2019-11-28 18:51:01
The app TouchSwitcher add item beside lightscreen and volume items : https://hazeover.com/touchswitcher.html Is there a solution to display an item into the control strip on the right region of touch bar ? I can't find any help in official documentation about it... Please help me ! Here's what I use . Pass an NSView and an identifier of your choice to the controlStrippify() function. My attempts at doing the exact same thing using Swift have resulted in crashes, ports welcome :). Inspiration from https://github.com/a2/touch-baer . @import Cocoa; @import Foundation; // See: https://github.com

How get an item in control center of Touch Bar on the right?

雨燕双飞 提交于 2019-11-27 20:26:58
问题 The app TouchSwitcher add item beside lightscreen and volume items : https://hazeover.com/touchswitcher.html Is there a solution to display an item into the control strip on the right region of touch bar ? I can't find any help in official documentation about it... Please help me ! 回答1: Here's what I use. Pass an NSView and an identifier of your choice to the controlStrippify() function. My attempts at doing the exact same thing using Swift have resulted in crashes, ports welcome :).