开发者

How can I make an NSImage into a button

Is it possible to make it so that the user can click on an NSIm开发者_开发百科age and trigger an action? How can I do this, through Interface Builder or programmatically?


Yeah:

[myButton setImage:[NSImage imageNamed:@"mypng.png"]];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜