Re: [[NSView animator] setHidden:YES] doesn't fade?
Re: [[NSView animator] setHidden:YES] doesn't fade?
- Subject: Re: [[NSView animator] setHidden:YES] doesn't fade?
- From: Scott Anguish <email@hidden>
- Date: Wed, 6 Feb 2008 09:27:15 -0800
if you're using custom animations, you can use a callback for the
animationDidStop:finished:
otherwise, as Seth said, you can use a timer. which isn't bad
Or, if you're using an explicit animation you can group the animations
together and set the beginTime for the fade to be the length of the
animations before it. that will cause it to happen after.
On Feb 5, 2008, at 4:29 PM, Philip Dow wrote:
Thanks for the replies everyone.
I had mentioned...
At the end of the animation I need the view hidden. I haven't seen
a delegate method that would tell me when a NSAnimationContext
grouping has finished executing its animations.
I wondered this myself....
...Seth said.
It isn't an issue with hiding the document if I just need to turn on
layer backing, but there still might be the desire for a callback.
My workaround has been to perform a selector on my "delegate" object
with a delay that should put it right after the animation finishes.
This works as long as exact timing is not required. Not an ideal
solution, but barring anything else.
_______________________________________________
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