Instance Method

restoreCachedImage()

Splices the window’s cached image rectangles, if any, back into its raster image (and buffer if it has one), undoing the effect of any drawing performed within those areas since they were established using cacheImage(in:).

Declaration

func restoreCachedImage()

Discussion

You must invoke flush() after this method to guarantee proper redisplay. An NSWindow object automatically discards its cached image rectangles when it displays.

See Also

Bracketing Drawing Operations

func cacheImage(in: NSRect)

Stores the window’s raster image from a given rectangle expressed in the window’s base coordinate system.

Deprecated
func discardCachedImage()

Discards all of the window’s cached image rectangles.

Deprecated