I’m trying to disable the screensaver from appearing in my app. It seems to work on widows, but not on the mac build.
I’m using the git version of juce as of 14-05-2011, built on 10.6 with 10.5 base sdk.
Yeah it’s non-zero. Maybe I’m calling this from the wrong thread? I presume any activeWindowStatusChanged callback gets called from the message thread…
There’s no obvious reason why it’d need to be called by the message thread, but I guess there could be something quirky going on in the OSX code, so it’s worth a try!
It seems that this only prevents the system from going to sleep, but the docs mention nothing about screen savers.
I take it that the display going to sleep is something different from the screen saver.
Thus far I haven’t found anything in the docs…
Hmm, interesting. I used to use that function, but it disappeared in 64-bit builds, which is why I added the other IO code. But doing a bit of digging, it seems that it’s actually returned again, and shouldn’t have been removed! I’ll see what I can figure out…