title: OSX: How do you allow user to resize window under auto layout?
body: <p>I have a NSWindow, with some views, hooked together with auto layout constraints.</p>
  
  <p>Window looks something like this...</p>
  
  <pre><code>Label - TextView - Label - TextView - Label - DatePicker
  
  Label - TextView - Label - PopUp - Label - PopUp
  </code></pre>
  
  <p>The data for the popups is obtained via bindings to core data, so the values are not known until runtime.  I want those controls to resize to accommodate the values from the database.</p>
  
  <p>On the surface, everything seems to be fine.  However, if I end up with a really long string in a popup control, the size of that control causes the size of the window to expand.</p>
  
  <p>I want the sizes to be dynamic, and change according to the values of the data, but I want the constraints to be limited to the size of the window.</p>
  
  <p>However, I want the user to be able to resize the window, if they want to make it wider.  I only want the window to be resized by the user (the window size will be saved and restored automatically).</p>
  
  <p>I sort of get that if I set the hugging value on the main view of the window, but that seems to prevent the user from being able to resize the window as well.  If I reduce the priority of the controls' constraints, I don't get the size and positioning as I want it.</p>
  
  <p>So, basically, I want the controls to change as the window size changes, but I don't want the size of the window to change unless to user changes it.  How can I get that to happen?</p>
  
  <p>Thanks!</p>