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.