window(_:willEncodeRestorableState:)
Tells the delegate the window is about to add its restorable state to a given archiver.
Declaration
@MainActor optional func window(_ window: NSWindow, willEncodeRestorableState state: NSCoder)Parameters
- window:
The window adding its restorable state to an archive.
- state:
The coder creating the archive.
Discussion
This method is called during the window’s encodeRestorableState(with:) method.