Instance Method

flushIfNeeded()

Flushes the window’s offscreen buffer to the screen if flushing is enabled and if the last flush() message had no effect because flushing was disabled.

Declaration

func flushIfNeeded()

Discussion

To avoid unnecessary flushing, use this method rather than flush() to flush an NSWindow object after flushing has been reenabled.

See Also

Managing Window Buffers

var isFlushWindowDisabled: Bool

A Boolean value that indicates whether the window’s flushing ability is disabled.

Deprecated
func enableFlushing()

Reenables the flush() method for the window after it was disabled through a previous disableFlushing() message.

Deprecated
func disableFlushing()

Disables the flush() method for the window.

Deprecated
func flush()

Flushes the window’s offscreen buffer to the screen if the window is buffered and flushing is enabled.

Deprecated