シンプルな画像を描画して保存しようとしていますが、MBP RD デバイスでは最終的に 2 倍の大きさで保存されます。
NSImage* image = [[NSImage alloc] initWithSize:size];
[image lockFocus];
[[NSColor blueColor] set];
NSRectFill(CGRectMake(0, 0, 100, 100));
[image unlockFocus];
// ... then save the image
// Cache the reduced image
NSData *imageData = [self TIFFRepresentation];
NSBitmapImageRep *imageRep = [NSBitmapImageRep imageRepWithData:imageData];
NSDictionary *imageProps = [NSDictionary dictionaryWithObject:[NSNumber numberWithFloat:1.0] forKey:NSImageCompressionFactor];
imageData = [imageRep representationUsingType:NSPNGFileType properties:imageProps];
[imageData writeToFile:fileName atomically:NO];
// image is saved as 200 x 200 :(
一貫したサイズにしたいので、すべてのデバイスで 100x100