Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTouchBarMBS class.

NSTouchBarMBS.Available as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether this class is available.
Example
if NSTouchBarMBS.Available then
MsgBox "This Mac may have a TouchBar or not."
else
MsgBox "This Mac is too old for a TouchBar."
end if

Returns true on macOS 10.12.1 and newer, if the version with TouchBar support is installed.

NSTouchBarMBS.RemoveTouchBarFromApp

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 17.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes TouchBar for app.

NSTouchBarMBS.RemoveTouchBarFromWindow(window as NSWindowMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 17.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes TouchBar for window.

See also:

NSTouchBarMBS.RemoveTouchBarFromWindow(window as window)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 17.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Removes TouchBar for window.

See also:

NSTouchBarMBS.toggleTouchBarCustomizationPalette

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Show or dismiss the customization palette for the currently displayed touch bars.

NSApplication validates this selector against whether the current touch bars are customizable and, if configured on a menu item, will standardize and localize the title. If the current system does not have touch bar support, the menu item will be automatically hidden.

Some examples using this method:

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...