rendered paste bodyawakeFromNib of controller object:
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"png"];
NSImage *fullImage = [[NSImage alloc] initWithSize:NSMakeSize(792, 600)];
[fullImage lockFocus];
NSImage *image = [[NSImage alloc] initWithContentsOfFile:imagePath];
[image setFlipped:YES];
[image drawInRect: NSMakeRect(10, 20, 40, 40)
fromRect: NSZeroRect
operation: NSCompositeSourceOver
fraction: 1.0];
[imageView setImage:fullImage];
subclass of NSImageView:
- (BOOL)isFlipped { return YES; }