2

有没有办法以编程方式隐藏 NSTouchBar 的控制条?NSPopOverTouchBarItem 有一个私有属性showsControlStrip。但是我该如何利用这个私有财产呢?

谢谢你。

4

1 回答 1

0

There's no API to persistently hide the Control Strip. There are cases where the Control Strip is temporarily suppressed to accommodate other UI (e.g. while using press-and-hold popover items), but this tends to be for transient UI only.

The Control Strip's visibility is configurable under Keyboard preferences, so permanently hiding it could contradict the user's explicit preference.

于 2017-01-06T04:43:06.303 回答