The Core Animation Programing Guide — http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/AnimProps.html
#//apple_ref/doc/uid/TP40005942-SW2 — indicates 0.25 seconds are used
for an implicit animation.
As for using CABasicAnimation so you could use the
On 16.12.2008, at 15:27, Gustavo Pizano wrote:
Hello Dimitri.
CAAnimation* rotateAnimation = [CABasicAnimation
animationWithKeyPath:@transform];
rotateAnimation.fromValue = [NSValue
valueWithCATransform3D:nLayer.transform];
rotateAnimation.toValue = [NSValue
Yes it was CABasicAnimation.
Dimitri made just a typing mistake.
Gustavo
On 16.12.2008, at 16:34, Klaus Backert wrote:
On 16.12.2008, at 15:27, Gustavo Pizano wrote:
Hello Dimitri.
CAAnimation* rotateAnimation = [CABasicAnimation
animationWithKeyPath:@transform];
Dimitri Hi
using CAAnimation this is what I was doing:
-(void)mouseDown:(NSEvent *)event
{
[event retain];
[mouseDownEvent release];
mouseDownEvent = event;
NSPoint p2 = [event locationInWindow];
NSPoint p3 = [self convertPoint:p2 fromView:nil];
Hello
Im rotating a layer, with the following method :
[nLayer setValue:value forKeyPath:@transform.rotation.z];
but then I want right after the animation ends, to check the new
position of the CALayer to align it into the closest grid cell which
will belong. I found out I can use the
-(void)mouseDown:(NSEvent *)event
{
[event retain];
[mouseDownEvent release];
mouseDownEvent = event;
NSPoint p2 = [event locationInWindow];
NSPoint p3 = [self convertPoint:p2 fromView:nil];
CGPoint p = NSPointToCGPoint(p3);
CALayer *
Hello Dimitri.
CAAnimation* rotateAnimation = [CABasicAnimation
animationWithKeyPath:@transform];
rotateAnimation.fromValue = [NSValue
valueWithCATransform3D:nLayer.transform];
rotateAnimation.toValue = [NSValue
valueWithCATransform3D:transform];
its gives me an error, Error request