Instance Method

showWindow:

Displays the window associated with the receiver.

Declaration

- (IBAction)showWindow:(id)sender;

Parameters

sender

The control sending the message; can be nil.

Discussion

If the window is an NSPanel object and has its becomesKeyOnlyIfNeeded flag set to YES, the window is displayed in front of all other windows but is not made key; otherwise it is displayed in front and is made key. This method is useful for menu actions.

See Also

Loading and Displaying the Window

- loadWindow

Loads the receiver’s window from the nib file.

windowLoaded

A Boolean value that indicates whether the nib file containing the receiver’s window has been loaded.

window

The window owned by the receiver.

- windowDidLoad

Sent after the window owned by the receiver has been loaded.

- windowWillLoad

Sent before the window owned by the receiver is loaded.