可能重复:
在 NSButton 上使用 -setImage
I created a button using following code .
NSView *superview = [_window contentView];
NSRect frame = NSMakeRect(10, 10, 200, 100);
button = [[NSButton alloc] initWithFrame:frame];
[button setTitle:@"Click me!"];
那么如何为这个按钮设置图像呢?