title: How to catch the moment when a window starts deminiaturizing?
body: <p><code>NSWindowDelegate</code> protocol has a <code>windowDidDeminiaturize</code> callback, but no <code>windowWillDeminiaturize</code> callback. I need to catch the moment when the window is starting to deminiaturize and make changes to it before the user sees the changes applied.</p>
  
  <p>I can't do the changes in <code>windowDidMiniaturize</code> because I need to show another window; if I do it in <code>windowDidMiniaturize</code>, this other window will appear as soon as the first one has miniaturized.</p>
  
  <p>Any ideas?</p>