<div class="meta" robots="noindex">

</div>

Method

# System.Gestalt

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2014r3. There is no replacement.

</div>

## Description

Returns the characteristic of system specified by *Code* (Macintosh only). Returns a `Boolean</api/data_types/boolean>`, which is `True</api/language/true>` if successful.

## Notes

See <span class="title-ref">\`Gestalt</span> Manager Reference on Apple's website \<<http://developer.apple.com/mac/library/documentation/Carbon/Reference/Gestalt_Manager/Reference/reference.html>\>\`\_.

## Sample code

This example gets the macOS version:

``` xojo
Dim major, minor, bug As Integer

If System.Gestalt("sys1", major) Then
  If System.Gestalt("sys2", minor) Then
    If System.Gestalt("sys3", bug) Then
      MsgBox "macOS v" + Str(major) + "." + Str(minor) + "." + Str(bug)
    End If
  End If
End If
```

## Compatibility

All project types on all supported operating systems.
