Re: The simplest way to fade out a view
Re: The simplest way to fade out a view
- Subject: Re: The simplest way to fade out a view
- From: Gustavo Pizano <email@hidden>
- Date: Thu, 19 May 2011 20:22:42 +0200
Why will it be a bug?, a fade-in animation goes form 0 to 1 alpha, so at the start point the alpha value must 0 no?
On May 19, 2011, at 7:31 PM, Quincey Morris wrote:
> On May 19, 2011, at 05:26, Nick wrote:
>
>> Could you please advice me what would be the best way to "fade out"
>> and "fade in" a view? I tried using [[myView automator]
>> setAlphaValue:0.0] but after fading out it does not disappear. I need
>> it to "hide" after it fades out, i.e. a user can't click on its
>> buttons.
>
> Use NSViewAnimation. 'NSViewAnimationFadeOutEffect' will hide the view at the end of the animation.
>
> Note that Snow Leopard has a bug in 'NSViewAnimationFadeInEffect'. You need to unhide the view manually just before starting the animation.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden