Instance Property

isPreview

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

Declaration

var isPreview: Bool { get }

Discussion

The value of this property is true if the screen saver view was created in a smaller size to be used as a preview, or false if it was created full-screen for use as a screen saver. Subclasses can check the value of this property to determine if they should change their drawing parameters to something more suitable for display in a smaller frame.

See Also

Drawing the ScreenSaverView

func draw(NSRect)

Draws the screen saver view.