MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to get the Mac OS Version using System.Gestalt?
Feedback.

Answer: Try this code:
Example:
Dim s As String
Dim b As Boolean
Dim i, resp as Integer

// Systemversion
b = System.Gestalt("sysv", resp)
If b then
s = Hex(resp)
For i =Len(s)-1 DownTo 1
s=Left(s,i)+"."+Mid(s,i+1)
Next
MsgBox "Systemversion: Mac OS " + s
end if
Notes: The MBS Plugin has a SystemInformationMBS.OSVersionString function for this.




Links
MBS Realbasic Plugins