Instance Method

draw(_:)

Draws the screen saver view.

Declaration

func draw(_ rect: NSRect)

Discussion

ScreenSaverView implements draw(_:) to draw a black background. Subclasses can do their drawing here or in animateOneFrame().

See Also

Drawing the ScreenSaverView

var isPreview: Bool

A Boolean value that indicates if the screen saver view was created in a size appropriate for use as a preview.