Instance Property

canBecomeMainWindow

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

Declaration

@property(readonly) BOOL canBecomeMainWindow;

Discussion

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

Attempts to make the window the main window are abandoned if the value of this property is NO. The value of the property is YES if the window is visible, is not an NSPanel object, and has a title bar or a resize mechanism. Otherwise, the value is NO.

See Also

Managing Main Status

mainWindow

A Boolean value that indicates whether the window is 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.