---
title: sheetParent
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/sheetparent
---

# sheetParent

The window to which the sheet is attached.

## Declaration

```swift
var sheetParent: NSWindow? { get }
```

## Discussion

Discussion The value of this property is nil if the receiver is not a sheet or has no sheet parent. The window object in this property refers to the window to which the sheet is logically attached, regardless of appearance. The parent window–sheet relationship begins with the beginning of the sheet (for example, through beginSheet(_:completionHandler:)) and ends with the sheet’s dismissal (for example, through endSheet(_:)).

## See Also

### Managing Sheets

- [attachedSheet](appkit/nswindow/attachedsheet.md)
- [isSheet](appkit/nswindow/issheet.md)
- [beginSheet(_:completionHandler:)](appkit/nswindow/beginsheet(_:completionhandler:).md)
- [beginCriticalSheet(_:completionHandler:)](appkit/nswindow/begincriticalsheet(_:completionhandler:).md)
- [endSheet(_:)](appkit/nswindow/endsheet(_:)-4dmmq.md)
- [endSheet(_:returnCode:)](appkit/nswindow/endsheet(_:returncode:).md)
- [sheets](appkit/nswindow/sheets.md)
