A Boolean value indicating whether the window configuration is preserved between application launches.
- macOS 10.7+
Set this property to
YES if you want the window to be preserved or
NO if you do not want it preserved. By default, the value of this property is
YES if the window’s
style property includes the
NSTitled flag. For other windows, the value is
NO. Setting a value explicitly overrides the default values.
Windows should be preserved between launch cycles to maintain interface continuity for the user. During subsequent launch cycles, the system tries to recreate the window and restore its configuration to the preserved state. Configuration data is updated as needed and saved automatically by the system.
If you enable preservation for a given window, you should also specify a restoration class for the window using the