setContentSize(_:)
Sets the size of the window’s content view to a given size, which is expressed in the window’s base coordinate system.
Declaration
func setContentSize(_ size: NSSize)Parameters
- size:
The new size of the window’s content view in the window’s base coordinate system.
Discussion
This size in turn alters the size of the NSWindow object itself. Note that the window server limits window sizes to 10,000; if necessary, be sure to limit aSize relative to the frame rectangle.