![Joris Kluivers Joris Kluivers](/images/avatar-large.gif)
CPAnimation delegate implementation
Reported by Joris Kluivers | September 13th, 2008 @ 02:12 AM
When setting the delegate for CPAnimation that doesn't implement all delegate methods an 'undefined' javascript error occurs. It shouldn't be the desired behaviour to require all delegate methods to be implemented.
At this time I'm using a category on CPObject to implement default implementations for all delegate methods to workaround the issue.
@implementation CPObject (CPAnimationDelegate) -(BOOL)animationShouldStart:(CPAnimation)animation {
return YES;
} -(void)animationDidEnd:(CPAnimation)animation {} -(void)animationDidStop:(CPAnimation)animation {} - (float)animation:(CPAnimation)animation valueForProgress:(float)progress {
return progress;
} @end
Comments and changes to this ticket
-
admin (at 280north) September 17th, 2008 @ 04:00 PM
- State changed from new to resolved
- Tag changed from api, objective-j, patch to api, objective-j, patch
(from [53d4a714e23c17b9595b8194163574395bc66223]) Fix for requiring delegate methods (#36), and for JSONP not calling the run loop.
[#36 state:resolved]; http://github.com/280north/cappu...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.
People watching this ticket
Tags
Referenced by
-
36 CPAnimation delegate implementation [#36 state:resolved]; http://github.com/280north/cappu...