我有一个带有自定义视图的NSWindow。执行以下代码时,图像无法正确显示。它太小了。图像的大小为380x122。我做错了什么?
NSImage *imageFromBundle = [NSImage imageNamed:@"about.bmp"];
NSImageView *imageView = [[NSImageView alloc] initWithFrame:NSMakeRect(0,0,380,122)];
[imageView setImage: imageFromBundle];
[_aboutCustomView addSubview:imageView];
[_aboutWindow center];
[_aboutWindow makeKeyAndOrderFront: nil];
[_aboutWindow display];