I would like to be able to disable and re-enable the screen saver from within my program. I figure that if I can change the idleTime preference than I can set it to 0 to disable the screen saver.
I did an object dump of ScreenSaver.pref, and found the function SSDEngineDimTime that I am guessing does what I want. The trouble is I have no idea how to use it. It's not a public function and I've never tried using an undocumented function before. I did try a few things but was unable to get the compiler to understand it.
Does anyone have any suggestions on how to go about finding out the parameters for this function and how I can get the compiler to understand it? Thanks.