Edit AllPages

Here’s the implementation for a screen saver that blanks the screen and does no animation. It’s kind of goofy now that we have energy saver, but some people insist on minimalism …

In BlackView.h:

#import <ScreenSaver/ScreenSaver.h>

@interface BlackView : ScreenSaverView { } @end

In BlackView.m:

#import “BlackView.h”

@implementation BlackView


Note that we aren’t doing any graphics ourselves. The ScreenSaverView base class will draw black. The only thing we’re doing is disabling the animation timers by setting the animation time to -1.