---
title: display()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nswindow/display()
---

# display()

Passes a display message down the window’s view hierarchy, thus redrawing all views within the window.

## Declaration

```swift
func display()
```

## Discussion

Discussion You rarely need to invoke this method. NSWindow objects normally record which of their views need displaying and display them automatically on each pass through the event loop. This method includes the frame view that draws the border, title bar, and other peripheral elements.

## See Also

### Drawing Windows

- [displayIfNeeded()](appkit/nswindow/displayifneeded().md)
- [viewsNeedDisplay](appkit/nswindow/viewsneeddisplay.md)
- [allowsConcurrentViewDrawing](appkit/nswindow/allowsconcurrentviewdrawing.md)
