• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: The simplest way to fade out a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 21:31:38 +0200

funny, I can't say it has happened to me as I always use CAAnimation .


On May 19, 2011, at 9:27 PM, Quincey Morris wrote:

> On May 19, 2011, at 11:22, Gustavo Pizano wrote:
>
>> 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?
>
> What actually happens in Snow Leopard (IIRC -- it was a few weeks ago that I was using NSViewAnimation) is that the view fades in normally, but at the end of animation it vanishes again because it's still officially hidden. So, the fade-in animation works, but it just doesn't "stick" at the end. You can google the 'NSViewAnimationFadeInEffect' effects key if you want to read more about it.
>
> The *technical* answer to the OP's question is easily findable by googling. However, in this case, the fault is really Apple's. It's hard to know that NSViewAnimation even exists, starting from any obvious place, such as the NSView documentation. The OP and the people who responded can't really be blamed for not realizing there are two intermediate APIs -- NSViewAnimation and NSAnimation -- between the obvious extremes that *are* well-pointed-to in the documentation -- [NSView animator] and layers.
>

_______________________________________________

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

References: 
 >The simplest way to fade out a view (From: Nick <email@hidden>)
 >Re: The simplest way to fade out a view (From: Quincey Morris <email@hidden>)
 >Re: The simplest way to fade out a view (From: Gustavo Pizano <email@hidden>)
 >Re: The simplest way to fade out a view (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: The simplest way to fade out a view
  • Next by Date: Re: The simplest way to fade out a view
  • Previous by thread: Re: The simplest way to fade out a view
  • Next by thread: Re: The simplest way to fade out a view
  • Index(es):
    • Date
    • Thread