Folks,

I'm trying to perform a basic resize on an NSView subclass using an explicit animation. The code compiles and runs without crashing, but also without performing the resize. I'm obviously missing something very basic, but I haven't been able to find the answer elsewhere. Here's my sample code:

CABasicAnimation* resizeAnimation = [CABasicAnimation animationWithKeyPath:@"frame.size"];
        [resizeAnimation setDelegate:self];
        resizeAnimation.duration = 3.0;
        resizeAnimation.fromValue = [NSValue valueWithRect:[self frame]];
        resizeAnimation.toValue = [NSValue valueWithRect:largerRect];
        [[self layer] addAnimation:resizeAnimation forKey:@"frame"];

Thanks for any insights.

Regards,
     Michael Fey
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to