I used the codes below to display an image
NSImage *image = [[[NSImage alloc] initWithContentsOfURL:url] autorelease];
NSImageView *newImageView = nil;
newImageView = [[NSImageView alloc] initWithFrame:[self bounds]];
[newImageView setImage:image];
[newImageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
the NSImageView will resize the NSimage automatically

How to get the actual display size of the NSImage?
Welcome any comment
I have such a method for iOS, you may be able to adapt it: