Contents

animationResizeTime(_:)

Specifies the duration of a smooth frame-size change.

Declaration

func animationResizeTime(_ newFrame: NSRect) -> TimeInterval

Parameters

Return Value

The duration of the frame size change.

Discussion

Subclasses can override this method to control the total time for the frame change.

The NSWindow implementation uses the value from the NSWindowResizeTime user default as the time in seconds to resize by 150 pixels. If this value is unspecified, NSWindowResizeTime is 0.20 seconds (this default value may be different in different releases of macOS).

See Also

Sizing Windows