# `GSDialogController runDialog:modalForWindow:`

*Instance Method*

## Declaration

```swift
func runDialog(_ sender: Any?, modalFor window: NSWindow?) -> NSApplication.ModalResponse
```

```objc
- (NSModalResponse) runDialog:(id) sender modalForWindow:(NSWindow *) window;
```

```python
runDialog_modalForWindow_(sender: object, window: NSWindow) -> NSModalResponse
```

