开发者

NSButton and Image Animation

Hello I am writing an mac os x application that contains several nsbuttons. Each nsbutton has its own image. When you press the nsbutton, there is a change of image. Is there an option to add animation when开发者_StackOverflow changing images on the nsbutton?


you can subclass nsbutton and can use the button's view's layer to do animation whenever the image needs to be changed. NSButton is also a subclass of NSView so it also will be having a proxy animator object but in that case i guess whole button might get animated and not just image that you want. Hope it helps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜