<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/sheetParent",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(py)sheetParent"
  },
  "title" : "sheetParent"
}
-->

# sheetParent

The window to which the sheet is attached.

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

## 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:)`](/documentation/AppKit/NSWindow/beginSheet(_:completionHandler:))) and ends with the sheet’s dismissal (for example, through [`endSheet(_:)`](/documentation/AppKit/NSWindow/endSheet(_:)-4dmmq)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)