Einhugur macOS Bridge plugin. |

# NSAlert.BeginSheetModalForWindow Method

Runs the alert modally as a sheet attached to the specified window. This variation takes new style Xojo DesktopWindow.

BeginSheetModalForWindow(
windowInstance as DesktopWindow,
completionHandler as AlertCompletionDelegate)

#### Parameters

windowInstance
  The window on which to display the alert sheet.
completionHandler
  Address of completion handler to get the result when the user presses button on the alert.

#### Remarks

This variation of the method will only show up for Xojo 2021r3 or later.

#### See Also

NSAlert Class