Contents

ScreenSaverView

An abstract class that defines the interface for subclassers to interact with the screen saver infrastructure.

Declaration

class ScreenSaverView

Overview

ScreenSaverView provides the interface for your screen saver, including the content you animate onscreen and an optional configuration sheet. Create your own custom subclass and add it to your screen saver bundle. Use your subclass to create the animations that you want to appear onscreen, and to specify additional animation details.

You can draw from your view’s draw(_:) method, or you can draw directly from the animateOneFrame() method. If you prefer to use the draw(_:) method, use the animateOneFrame() method to call the setNeedsDisplay(_:) method and specify the portions of your view that require updates.

Topics

Creating a screen saver view

Getting the preferred window behavior

Setting and getting the animation time interval

Animating the screen saver

Drawing the view

Accessing the configuration sheet

See Also

Interface