setFrame(from:)
Sets the window’s frame rectangle from a given string representation.
Declaration
func setFrame(from string: NSWindow.PersistableFrameDescriptor)Parameters
- string:
A string representation of a frame rectangle, previously accessed using Framedescriptor.
Discussion
If the window is not resizable, this method will not resize the window. The frame is constrained according to the window’s minimum and maximum size settings. This method causes a windowWillResize(_:to:) message to be sent to the delegate.