Instance Method


Shows the window and makes it the key window.


func makeKeyAndVisible()


This is a convenience method to show the current window and position it in front of all other windows at the same level or lower. If you only want to show the window, change its isHidden property to false.

See Also

Making Windows Key

var isKeyWindow: Bool

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

func makeKey()

Makes the receiver the key window.

func becomeKey()

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

func resignKey()

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software