---
title: window
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsalert/window
---

# window

The app-modal panel or document-modal sheet that corresponds to the alert.

## Declaration

```swift
var window: NSWindow { get }
```

## Discussion

Discussion The alert’s window is of type NSPanel. Use this property when you want to dismiss an alert created with the beginSheetModal(for:completionHandler:) method within that method’s completion handler block.
