Starts a document-modal session and presents—or queues for presentation—a sheet.
- macOS 10.9+
The window object that represents the sheet to present.
The completion handler that gets called when the sheet’s modal session ends.
If the window already has a presented sheet, this method queues the specified sheet for presentation after the current sheet is dismissed and then returns control to the caller.
If the window has no presented sheets, this method displays the specified sheet, makes it key, and returns control to the caller. While the sheet remains visible, most events targeted at the receiver are prohibited. The runloop does not enter any special mode to accomplish this.