title: NSImageView resized with image size
body: <p>I'm new to Obj-C/Cocoa programming and facing to a problem about NSImageView.
  <br />
  My goal is to create an app which allow the user to put an image on it with drag&amp;drop.</p>
  
  <p>The problem is the following : when we're dropping an image larger than the window, it resizes the window to the image size, <strong>I don't want that</strong> !<br/>
  I put my NSImageView into a NSScrollView so only a certain part of the image <strong>MUST</strong> be showed and the user will move sliders to view the entire one (or simply resize the window), that's what I want..</p>
  
  <p>Here is my XIB hierarchy (concerned part) :</p>
  
  <ul>
  <li>View
  <ul>
  <li>NSScrollView
  <ul>
  <li>View
  <ul>
  <li>NSImageView</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p><br /></p>
  
  <p>In the code of my NSImageView, I have (about that problem) :</p>
  
  <pre><code>[self setImageScaling:NSScaleProportionally];
  [self setImage:newImage];
  </code></pre>
  
  <p><br />
  <em>NOTE</em>: The sliders seem to move the view and not the image
  <br />
  <em>NOTE2</em>: I can't resize the window to a lower size than the image</p>