Contents

preventsApplicationTerminationWhenModal

A Boolean value that indicates whether the window prevents application termination when modal.

Declaration

var preventsApplicationTerminationWhenModal: Bool { get set }

Discussion

The value of this property is true if the window prevents application termination when modal; otherwise, false. The default value is true.

Usually, application termination is prevented when a modal window or sheet is open, without consulting the application delegate. Some windows may wish not to prevent termination, however. Setting this property to false overrides the default behavior and allows termination to proceed even if the window is open, either through the sudden termination path if enabled, or after consulting the application delegate.

See Also

Configuring the Window’s Appearance