Instance Method

resignMain()

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

Declaration

func resignMain()

Discussion

This method sends windowDidResignMain(_:) to the window’s delegate and posts an didResignMainNotification to the default notification center.

See Also

Managing Main Status

var isMainWindow: Bool

A Boolean value that indicates whether the window is the application’s main window.

var canBecomeMain: Bool

A Boolean value that indicates whether the window can become the application’s main window.

func makeMain()

Makes the window the main window.

func becomeMain()

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