title: How to resize two subviews based on priorities using Cocoa Autolayout?
body: <p>I am playing with Autolayout in Cocoa and some things are not clear for me.</p>
  
  <p>I have 2 views on a window. The width of each view is 1/2 width of the parent window.</p>
  
  <pre><code>|           |           |
  |           |           |
  |   View1   |   View2   |
  |           |           |
  |           |           |
  </code></pre>
  
  <p>If I resize a window I want the View2 to resize first.</p>
  
  <pre><code>|           |     |
  |           |     |
  |   View1   |View2|
  |           |     |
  |           |     |
  </code></pre>
  
  <p>When View2 reaches its minimal size I want View1 to be resized to its minimal size.</p>
  
  <pre><code>|     |     |
  |     |     |
  |View1|View2|
  |     |     |
  |     |     |
  </code></pre>
  
  <p>How can I do that?</p>