Instance Property

sheetParent

The window to which the sheet is attached.

Declaration

@property(readonly, strong) NSWindow *sheetParent;

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

The sheet attached to the window.

sheet

A Boolean value that indicates whether the window has ever run as a modal sheet.

- beginSheet:completionHandler:

Starts a document-modal session and presents—or queues for presentation—a sheet.

- beginCriticalSheet:completionHandler:

Starts a document-modal session and presents the specified critical sheet.

- endSheet:

Ends a document-modal session and dismisses the specified sheet.

- endSheet:returnCode:

Ends a document-modal session and dismisses the specified sheet.

sheets

An array of the sheets currently attached to the window.