I have a NSView, there is a NSImageView on the NSView
in the source codes of the NSView
I wrote:
NSImage *image = [[[NSImage alloc] initWithContentsOfURL:url] autorelease]; NSImageView *newImageView = nil; newImageView = [[NSImageView alloc] initWithFrame:[self bounds]]; [newImageView setImage:image]; [newImageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; Is there a way to read the width and height of the NSView and NSImageView?