Determine MacOS X version on runtime lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- Xor-el · 2019-06-10 00:27 Hi all, I have a code am working on that requires a certain API that is unfortunately available only on MacOS X 10.7 and above. While I want to support Mac versions lower than that specified above, I cannot do that because I don't know how to determine the MacOS X version number at runtime. Does anyone have a code that can help (preferably one not deprecated and not requiring me to import the LCL (that is, will work on Console programs too))? Something like Code: [Select]If MacOSXVersion >= 10.7 do begin end else begin end. Thanks In advance. ---------------------------------------------------------------------- skalogryz · 2019-06-10 01:28 http://wiki.freepascal.org/Cocoa_Internals/OS_Versions#AppKit_Version I'd certainty recommend to just use the newer API. ---------------------------------------------------------------------- Xor-el · 2019-06-10 05:57 Quote from: skalogryz on June 10, 2019, 03:28:57 amhttp://wiki.freepas cal.org/Cocoa_Internals/OS_Versions#AppKit_Version I'd certainty recommend to just use the newer API. Thanks for replying, I guess I will just stick with the newer API since this will make the job far easier and also latest FireMonkey on Delphi do not support MacOS X versions below 10.7. Thanks.