Instance Property

mainWindow

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

Declaration

@property(getter=isMainWindow, readonly) BOOL mainWindow;

Discussion

The value of this property is YES when the window is the main window for the application; otherwise, NO.

See Also

Managing Main Status

canBecomeMainWindow

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

- makeMainWindow

Makes the window the main window.

- becomeMainWindow

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

- resignMainWindow

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