Instance Property

restorable

A Boolean value indicating whether the window configuration is preserved between application launches.

Declaration

@property(getter=isRestorable) BOOL restorable;

Discussion

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 styleMask property includes the NSTitledWindowMask 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 restorationClass property.

See Also

Handling Window Restoration

restorationClass

The restoration class associated with the window.

- disableSnapshotRestoration

Disable snapshot restoration.

- enableSnapshotRestoration

Enable snapshot restoration.