2

Is there any way to hide controlstrip of NSTouchBar programmatically? NSPopOverTouchBarItem has a private property showsControlStrip. But how do I make use of this private property?

Thank you.

sharmada
  • 131
  • 1
  • 6

1 Answers1

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.

Jeff
  • 194
  • 5
  • 1
    Thank you Jeff. But can you please explain "How can I temporarily suppress controlStrip to accommodate other UI"? – sharmada Jan 06 '17 at 05:05