可可-在两个NSImage之间消失吗? [英] Cocoa - Fade between two NSImage's?

查看:77
本文介绍了可可-在两个NSImage之间消失吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有NSImage的菜单,其中显示了一些信息,当它更新时,我希望淡入新的(更新的)图像.我知道在iPhone上很容易,但是在OS X上可以吗?

I have a menu with an NSImage showing some information, and when it gets updated I would like the new (updated) image to fade in. I know it is easy on the iPhone, but is this possible in OS X ?

推荐答案

我认为最有价值的示例之一是ImageTransition.至少对我来说,来自iOS世界很容易理解. http://developer.apple.com/library/mac/samplecode/ImageTransition/ImageTransition.zip

I think that one of the most valuable example is ImageTransition. It's easy to understand at least for me, coming from the iOS world. http://developer.apple.com/library/mac/samplecode/ImageTransition/ImageTransition.zip

希望有帮助,保罗

这篇关于可可-在两个NSImage之间消失吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆