---
title: NSRunAlertPanelRelativeToWindow
framework: appkit
role: symbol
role_heading: Function
path: appkit/nsrunalertpanelrelativetowindow
---

# NSRunAlertPanelRelativeToWindow

## Declaration

```occ
extern NSInteger NSRunAlertPanelRelativeToWindow(NSString *title, NSString *msgFormat, NSString *defaultButton, NSString *alternateButton, NSString *otherButton, NSWindow *docWindow, ...);
```

## See Also

### Functions

- [NSConvertGlyphsToPackedGlyphs(_:_:_:_:)](appkit/nsconvertglyphstopackedglyphs(_:_:_:_:).md)
- [NSOpenGLGetOption](appkit/nsopenglgetoption.md)
- [NSOpenGLGetVersion](appkit/nsopenglgetversion.md)
- [NSOpenGLSetOption](appkit/nsopenglsetoption.md)
- [raiseBadArgumentException(_:_:_:)](appkit/nsaccessibility-swift.struct/raisebadargumentexception(_:_:_:).md)
- [NSBeginAlertSheet](appkit/nsbeginalertsheet.md)
- [NSBeginCriticalAlertSheet](appkit/nsbegincriticalalertsheet.md)
- [NSBeginInformationalAlertSheet](appkit/nsbegininformationalalertsheet.md)
- [NSGetAlertPanel](appkit/nsgetalertpanel.md)
- [NSGetCriticalAlertPanel](appkit/nsgetcriticalalertpanel.md)
- [NSGetInformationalAlertPanel](appkit/nsgetinformationalalertpanel.md)
- [NSReleaseAlertPanel(_:)](appkit/nsreleasealertpanel(_:).md)
- [NSRunAlertPanel](appkit/nsrunalertpanel.md)
- [NSRunCriticalAlertPanel](appkit/nsruncriticalalertpanel.md)
- [NSRunInformationalAlertPanel](appkit/nsruninformationalalertpanel.md)
