Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTouchBarItemMBS class.

NSTouchBarItemMBS.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 NSTouchBarItemMBS.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.

NSTouchBarItemMBS.NSTouchBarItemIdentifierFixedSpaceLarge as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The identifier of an item appropriate for use as a large space in the touch bar.
Example
// create flexible space item
dim t as new NSTouchBarItemMBS(NSTouchBarItemMBS.NSTouchBarItemIdentifierFixedSpaceLarge)

Generally, you can use this identifier in a touch bar's itemIdentifiers array, and it will instantiate that space for you.

NSTouchBarItemMBS.NSTouchBarItemIdentifierFixedSpaceSmall as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The identifier of an item appropriate for use as a small space in the touch bar.
Example
// create fixed space item
dim t as new NSTouchBarItemMBS(NSTouchBarItemMBS.NSTouchBarItemIdentifierFixedSpaceSmall)

Generally, you can use this identifier in a touch bar's itemIdentifiers array, and it will instantiate that space for you.

Some examples using this method:

NSTouchBarItemMBS.NSTouchBarItemIdentifierFlexibleSpace as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The identifier of an item appropriate for use as a flexible space in the touch bar.
Example
// create flexible space item
dim t as new NSTouchBarItemMBS(NSTouchBarItemMBS.NSTouchBarItemIdentifierFlexibleSpace)

Generally, you can use this identifier in a touch bar's itemIdentifiers array, and it will instantiate that space for you.

NSTouchBarItemMBS.NSTouchBarItemIdentifierOtherItemsProxy as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method TouchBar MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The identifier of the special "other items proxy."
Example
// create proxy item
dim t as new NSTouchBarItemMBS(NSTouchBarItemMBS.NSTouchBarItemIdentifierOtherItemsProxy)

Generally, you can use this identifier in a touch bar's itemIdentifiers array, and a special proxy item will be instantiated for you. When the touch bar containing this item is visible, touch bars provided by items closer to the first responder will be nested inside the space denoted for this item. Space items on either side of this item will be automatically massaged to handle cases where the touch bar containing this identifier is itself the bar closest to the first responder (or closer bars are empty.)
Note that a touch bar lacking this item identifier will be replaced in its entirety by touch bars closer to the first responder.

Some examples using this method:

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


The biggest plugin in space...