I\'m working on a macOS app (let\'s call it the \"display app\") that displays a clock and other data, which is controlled by another app (the \"control app\") on the same m
This is App Nap. The display app can do the following to avoid napping:
id activity = [[NSProcessInfo processInfo] beginActivityWithOptions:NSActivityUserInitiatedAllowingIdleSystemSleep reason:@"whatever"];
When it can allow napping again, you should do:
[[NSProcessInfo processInfo] endActivity:activity];