Contents

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) -> Bool

Parameters

Return Value

true when name is read and the frame is set successfully; otherwise, false.

See Also

Managing Window Frames in User Defaults