Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

TouchBar.Available

Checks wether TouchBar is available.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
TouchBar 6.5 Yes No No No No
MBS( "TouchBar.Available" )   More

Parameters

none

Result

Returns 1 or 0.

Description

Checks wether TouchBar is available.
Returns 1 on Mac OS X 10.12.1 with TouchBar support.
The value 1 does not mean that there is a TouchBar, just the software to handle it.
But 0 clearly says that there is none.

Examples

Check touchbar:

If [ MBS( "TouchBar.Available" ) ]
    Show Custom Dialog [ "TouchBar" ; "Is available and may be installed." ]
Else
    Show Custom Dialog [ "TouchBar" ; "Is not available." ]
End If

See also

Example Databases

Created 1st November 2016, last changed 25th November 2017


TouchBar.AssignToWindow   -   TouchBar.Clear

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins