Instance Method

makeKeyAndVisible

Shows the window and makes it the key window.

Declaration

- (void)makeKeyAndVisible;

Discussion

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 hidden property to NO.

See Also

Making Windows Key

keyWindow

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

- 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.

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