Instance Property

window

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

Declaration

@property(readonly, strong) NSWindow *window;

Discussion

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