title: NSImageView setImageScaling notWorkingCorrectly
body: <p>I'm having problems scaling an image in nsimageview correctly.  What happens is when the image is loaded, it doesn't fill up the entire nsimageview.  I used NSScaleToFit and it completely stretched the image.  Since I don't know the dimensions of the photo (it changes, depending on what image is used) I can't set the nsimageview to a size and leave it there.  <strong>What I want to do is fill the entire nsimageview with an image, proportionally, even if some of the image is cut off.</strong></p>
  
  <p>This is the code that I'm using:</p>
  
  <pre><code>NSString *image_path = [applicationSupportDirectory stringByAppendingPathComponent:desktop_name];
          NSImage *imageFromBundle = [[NSImage alloc] initWithContentsOfFile:image_path];
          [ViewImage setImageScaling:NSScaleProportionally];
          [ViewImage setImage: imageFromBundle];
  </code></pre>