Instance Method set Frame Origin(_:)
Positions the bottom-left corner of the window’s frame rectangle at a given point in screen coordinates.
Declaration func setFrameOrigin( _ point: )
The new position of the window’s bottom-left corner in screen coordinates.
Note that the window server limits window position coordinates to ±16,000.
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).