performMiniaturize(_:)
Simulates the user clicking the minimize button by momentarily highlighting the button, then minimizing the window.
Declaration
func performMiniaturize(_ sender: Any?)Parameters
- sender:
The message’s sender.
Discussion
If the window doesn’t have a minimize button or can’t be minimized for some reason, the system emits the alert sound.