---
title: canBecomeMain
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/canbecomemain
---

# canBecomeMain

A Boolean value that indicates whether the window can become the application’s main window.

## Declaration

```swift
var canBecomeMain: Bool { get }
```

## Discussion

Discussion The value of this property is true when the window can become the main window; otherwise, false. Attempts to make the window the main window are abandoned if the value of this property is false. The value of the property is true if the window is visible, is not an NSPanel object, and has a title bar or a resize mechanism. Otherwise, the value is false.

## See Also

### Managing Main Status

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