showWindow(_:)
Displays the window associated with the receiver.
Declaration
@IBAction func showWindow(_ sender: Any?)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 true, 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.