Instance Method

becomeKey()

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

Declaration

func becomeKey()

Discussion

Never call this method directly. The system calls this method and posts didBecomeKeyNotification to let the window know when it has become key. The default implementation of this method does nothing, but subclasses can override it and use it to perform tasks related to becoming the key window.

See Also

Making Windows Key

var isKeyWindow: Bool

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

func makeKeyAndVisible()

Shows the window and makes it the key window.

func makeKey()

Makes the receiver the key window.

func resignKey()

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