Instance Property

isAutodisplay

A Boolean value that indicates whether the window automatically displays views that need to be displayed.

Declaration

var isAutodisplay: Bool { get set }

Discussion

The value of this property is true when the window automatically displays views that need to be displayed; otherwise, false. If autodisplay is false, the window or its views must be explicitly displayed.

Automatic display typically occurs on each pass through the event loop.

See Also

Drawing Windows

func display()

Passes a display message down the window’s view hierarchy, thus redrawing all views within the window, including the frame view that draws the border, title bar, and other peripheral elements.

func displayIfNeeded()

Passes a displayIfNeeded message down the window’s view hierarchy, thus redrawing all views that need to be displayed, including the frame view that draws the border, title bar, and other peripheral elements.

var viewsNeedDisplay: Bool

A Boolean value that indicates whether any of the window’s views need to be displayed.

func useOptimizedDrawing(Bool)

Specifies whether the window is to optimize focusing and drawing when displaying its views.

Deprecated
var graphicsContext: NSGraphicsContext?

The graphics context associated with the window for the current thread.

Deprecated
var allowsConcurrentViewDrawing: Bool

A Boolean value that indicates whether the window allows multithreaded view drawing.