Enumeration Case

gestaltSystemVersion

Declaration

gestaltSystemVersion = 'sysv'

Discussion

Indicates the version number of the operating system, with limitations on the values returned.

If the values of the minor or bug fix revision are larger than 9, then gestaltSystemVersion will substitute the value 9 for them. For example, when running OS X v10.3.15, this selector returns 0x1039. When running OS X v10.10.5, this selector returns 0x1095.

For macOS, the version representations are as shown in Table 1.

Table 1

Representation of macOS versions for the gestaltSystemVersion selector

macOS version

Representation

10.0

0x1000

10.1

0x1010

10.2

0x1020

10.3

0x1030

10.4

0x1040

For systems prior to macOS, the version is represented as four hexadecimal digits in the low-order word of the return value. For example, if your application is running in version 7.0.1, then Gestalt returns the value 0x0701. Ignore the high-order word of the returned value.