Instance Property

keyWindow

A Boolean value that indicates whether the window is the key window for the app.

Declaration

@property(nonatomic, readonly, getter=isKeyWindow) BOOL keyWindow;

Discussion

The value of this property is YES when the window is the key window or NO when it is not. The key window receives keyboard and other non-touch related events. Only one window at a time may be the key window.

See Also

Making Windows Key

- makeKeyAndVisible

Shows the window and makes it the key window.

- makeKeyWindow

Makes the receiver the key window.

- becomeKeyWindow

Called automatically to inform the window that it has become the key window.

- resignKeyWindow

Called automatically to inform the window that it is no longer the key window.