title: How to handle image output from cocoa app
body: <p>I have a question about the image output of a cocoa app. For the following code will create 
  different sized images(2x or 1x depending on the display) in retina displays and non retina displays. But I want the output image is 225x300 in every situations.</p>
  
  <pre><code>NSImage *image = [[NSImage alloc] initWithContentsOfFile:path];
  [image setScalesWhenResized:YES];
  [image setSize:NSMakeSize(225, 300)];
  [[image TIFFRepresentation]writeToURL:exportFileURL options:NSDataWritingAtomic error:&amp;error];
  </code></pre>
  
  <p>My question is how to handle this correctly. </p>