Contents

setFrame(_:display:animate:)

Sets the origin and size of the window’s frame rectangle, with optional animation, according to a given frame rectangle, thereby setting its position and size onscreen.

Declaration

func setFrame(_ frameRect: NSRect, display displayFlag: Bool, animate animateFlag: Bool)

Parameters

  • frameRect:

    The frame rectangle for the window, including the title bar.

  • displayFlag:

    Specifies whether the window redraws the views that need to be displayed. When True the window sends a Displayifneeded() message down its view hierarchy, thus redrawing all views.

  • animateFlag:

    Specifies whether the window performs a smooth resize. True to perform the animation, whose duration is specified by Animationresizetime(_:).

See Also

Related Documentation

Sizing Windows