Instance Method

becomeKey()

Invoked automatically to inform the window that it has become the key window; never invoke this method directly.

Declaration

func becomeKey()

Discussion

This method reestablishes the window’s first responder, sends the becomeKeyWindow message to that object if it responds, and posts an didBecomeKeyNotification to the default notification center.

See Also

Managing Key Status

var isKeyWindow: Bool

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

var canBecomeKey: Bool

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

func makeKey()

Makes the window the key window.

func makeKeyAndOrderFront(Any?)

Moves the window to the front of the screen list, within its level, and makes it the key window; that is, it shows the window.

func resignKey()

Invoked automatically when the window resigns key window status; never invoke this method directly.