开发者

How can I make an NSImage into a button

开发者 https://www.devze.com 2023-01-20 02:40 出处:网络
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:

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

精彩评论

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