how can I take notice when an NSWindow should or will get closed? I’d like to have something like the windowWillClose. Unfortunately NSWindowController does not have as much convenient methods as UIViewController has, for example. So what’s the best practice to do that?
Thanks
–f
According to the
NSWindowdocs, a window will post aNSWindowWillCloseNotificationnotification when it is about to close. Your controller can observe this notification.