Re: CAKeyframeAnimation problem

2009-07-13 Thread David Duncan

On Jul 12, 2009, at 2:17 PM, David W. Berry wrote:

So the jist of it is that I create a subclass of CAKeyframeAnimation  
that has a sequence of images in it's values property and a sequence  
of frame durations in the keyTimes property.  I can then add the  
animation to a layer to display and that's where the problem  
arises.  The first time (and only the first time) the animation is  
played the first few frames don't display (the movies are short,  
they only consist of 3-12 frames at 15fps)  After the first time I  
play the animation and it fails, I can play the animation just fine.



Please file a bug report on this issue.

One work around is to animate the contentsRect property instead of  
contents and use the contentsRect to select a portion of a single  
image that is assigned to the contents property of the layer.

--
David Duncan
Apple DTS Animation and Printing

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: CAKeyframeAnimation problem

2009-07-13 Thread David W. Berry
The work-around did, indeed, solve the problem I was having with the  
sequence, they now play correctly from start to stop.


If I might prevail upon you with another question, the goal is to  
trigger a short animation, leaving the last animation frame displayed  
as a lasting part of the image, right now I have a flicker as the  
animation is removed and then the underlying view is redrawn with the  
added image.  What's the convenient way to avoid the flickering?



David W. Berry
d...@greenwing.com
16709 Decker Creek
Manor, TX  78653
H: 512 276 1396
M: 512 293 5183



On Jul 13, 2009, at 1:06 PM, David Duncan wrote:


On Jul 12, 2009, at 2:17 PM, David W. Berry wrote:

So the jist of it is that I create a subclass of  
CAKeyframeAnimation that has a sequence of images in it's values  
property and a sequence of frame durations in the keyTimes  
property.  I can then add the animation to a layer to display and  
that's where the problem arises.  The first time (and only the  
first time) the animation is played the first few frames don't  
display (the movies are short, they only consist of 3-12 frames at  
15fps)  After the first time I play the animation and it fails, I  
can play the animation just fine.



Please file a bug report on this issue.

One work around is to animate the contentsRect property instead of  
contents and use the contentsRect to select a portion of a single  
image that is assigned to the contents property of the layer.

--
David Duncan
Apple DTS Animation and Printing



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: CAKeyframeAnimation problem

2009-07-13 Thread David Duncan

On Jul 13, 2009, at 3:42 PM, David W. Berry wrote:

If I might prevail upon you with another question, the goal is to  
trigger a short animation, leaving the last animation frame  
displayed as a lasting part of the image, right now I have a flicker  
as the animation is removed and then the underlying view is redrawn  
with the added image.  What's the convenient way to avoid the  
flickering?



Set the final value of the animation on the layer when you add the  
animation. You'll want to disable actions when you change the current  
value of the layer as well.

--
David Duncan
Apple DTS Animation and Printing

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com