Instance Method set Frame(_: display: animate:)
Sets the origin and size of the window’s frame rectangle, with optional animation, according to a given frame rectangle, thereby setting its position and size onscreen.
Declaration func setFrame( _ frameRect: , NSRect display displayFlag: , Bool animate animateFlag: )
The frame rectangle for the window, including the title bar.
Specifies whether the window redraws the views that need to be displayed. When
the window sends a
true message down its view hierarchy, thus redrawing all views. display If Needed()
Specifies whether the window performs a smooth resize.
to perform the animation, whose duration is specified by
true . animation Resize Time(_:) 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 perform Zoom (Any?)
This action method simulates the user clicking the zoom box by momentarily highlighting the button and then zooming the window.
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).