windowWillClose(_:)
Tells the delegate that the window is about to close.
Declaration
@MainActor optional func windowWillClose(_ notification: Notification)Parameters
- notification:
A notification named Willclosenotification.
Discussion
You can retrieve the NSWindow object in question by sending object to notification.