Re: CATextLayer question
Re: CATextLayer question
- Subject: Re: CATextLayer question
- From: John Clayton <email@hidden>
- Date: Wed, 14 Nov 2007 07:13:53 +0100
Correct, thanks. I modified the program to include a button that
reset the beginTime to the CACurrentMediaTime() value, and then when I
type something into the duration (like 4) the text appears, and after
4 seconds, fades out.
Thanks for the tip.
--
John Clayton
http://www.coderage-software.com/
On 13/11/2007, at 11:45 PM, David Duncan wrote:
On Nov 13, 2007, at 1:41 PM, John Clayton wrote:
I have an issue with CATextLayer that I'd like to explore. The
basic question is this: why does a CATextLayer that has a
'duration' specified for it, not draw anything?
Because the beginTime attribute is sometime in the past, likely the
distant past. Since the sum of the beginTime and your duration says
that the animation has expired, the layer is hidden. Generally, if
you want to set a layer's duration, you should also set its beginTime.
--
David Duncan
Apple DTS Animation and Printing
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