setFrameUsingName(_:force:)
Sets the window’s frame rectangle by reading the rectangle data stored under a given name from the defaults system. Can operate on non-resizable windows.
Declaration
func setFrameUsingName(_ name: NSWindow.FrameAutosaveName, force: Bool) -> BoolParameters
- name:
The name of the frame to read.
- force:
True to use Setframeusingname(_:) on a non-resizable window; False to fail on a non-resizable window.
Return Value
true when name is read and the frame is set successfully; otherwise, false.