---
title: canBecomeKey
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/canbecomekey
---

# canBecomeKey

A Boolean value that indicates whether the window can become the key window.

## Declaration

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

## Discussion

Discussion The value of this property is true if the window can become the key window, otherwise, false. Attempts to make the window the key window are abandoned if the value of this property is false. The value of this property is true if the window has a title bar or a resize bar, or false otherwise.

## See Also

### Managing Key Status

- [isKeyWindow](appkit/nswindow/iskeywindow.md)
- [makeKey()](appkit/nswindow/makekey().md)
- [makeKeyAndOrderFront(_:)](appkit/nswindow/makekeyandorderfront(_:).md)
- [becomeKey()](appkit/nswindow/becomekey().md)
- [resignKey()](appkit/nswindow/resignkey().md)
