---
title: resignMain()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nswindow/resignmain()
---

# resignMain()

Resigns the window’s main window status.

## Declaration

```swift
func resignMain()
```

## Discussion

Discussion This method sends windowDidResignMain(_:) to the window’s delegate and posts didResignMainNotification to the default notification center. Never invoke this method directly.

## See Also

### Related Documentation

- [resignKey()](appkit/nswindow/resignkey().md)

### Managing Main Status

- [isMainWindow](appkit/nswindow/ismainwindow.md)
- [canBecomeMain](appkit/nswindow/canbecomemain.md)
- [makeMain()](appkit/nswindow/makemain().md)
- [becomeMain()](appkit/nswindow/becomemain().md)
