Forum > macOS / Mac OS X

[SOLVED] Detect MacOS version

<< < (2/2)

ChrisR:
Sorry I missed the well written wiki page. Thanks for the rapid solution.

jwdietrich:
The following code supports current operating systems (macOS Ventura 13.6 or newer):


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function SystemVersion: String;begin  result := NSProcessInfo.ProcessInfo.operatingSystemVersionString.UTF8String;end;

Navigation

[0] Message Index

[*] Previous page

Go to full version