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 19:26:13 +0200
sorry putting again on the list,
you could always ask the animator proxy to do the sutff
the only thing you neeed to set is to tell the NSView to accept layers to YES
then
[[[myview] animator] setAlpha:0.0];
that will fade it .
On May 19, 2011, at 7:04 PM, Mikkel Islay wrote:
>
>>> Yes, that's what i want to do, but how to find out when the animation ends?
>>
>> Check out that -animationDidStop:finished: delegate method for CAAnimation.
>
> Indeed.
>
>> I haven't really followed developments on OS X closely, so I welcome
>> other list members setting me straight, but AFAIK the block based
>> animation scheme available on iOS 4+ that makes code for what you are
>> trying to do trivial (and easier to read) is unavailable in OS X.
>
> Wait a couple of months… (I speculate).
>
> Mikkel_______________________________________________
>
> 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