Via Lattanzio,23 Milano
+39 02 36592025
info@synaptica.info

Delphi disable AppNap on MacOSX application

Digital solution partner

Delphi disable AppNap on MacOSX application

Apple MacOSX is a fantastic OS, when your app goes in the background it consumes few resources, this is a fantastic thing if you do not plan to run processes in the background or if it is not a server application.

To avoid that your application is not slowed down I have created a very simple delphi unit that you can add to your projects where you have this need.

So to prevent your application from being put into appNap, simply add the following call when creating the main form: