Contents

isOneShot

A Boolean value that indicates whether the window device the window manages is freed when it’s removed from the screen list.

Declaration

var isOneShot: Bool { get set }

Discussion

When the value of this property is true, the window’s window device is freed when it’s removed from the screen list (that is, hidden) and another is created when it’s returned to the screen. When the value is false, the window device is reused. Freeing the window device when it’s removed from the screen list can result in memory savings and performance improvement for window objects that don’t take long to display. Doing so is particularly appropriate for window objects the user might use once or twice, but not display continually.

See Also

Properties