Instance Method perform Zoom(_:)
This action method simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.
Declaration func performZoom( _ sender: Any?)
The object sending the message.
If the window doesn’t have a zoom box or can’t be zoomed for some reason, the computer beeps.
See Also Sizing Windows var frame : NSRect
The window’s frame rectangle in screen coordinates, including the title bar.
var aspect Ratio : NSSize
The window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it.
var min Size : NSSize
The minimum size to which the window’s frame (including its title bar) can be sized.
var max Size : NSSize
The maximum size to which the window’s frame (including its title bar) can be sized.
func zoom (Any?)
This action method toggles the size and location of the window between its standard state (provided by the application as the “best” size to display the window’s data) and its user state (a new size and location the user may have set by moving or resizing the window).