Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPAnimation delegate implementation

#36

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

Reported by Joris Kluivers · September 13th, 2008 @ 02:12 AM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. admin (at 280north)
    admin (at 280north)
    • 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 CPAnimation delegate implementation state:resolved]; http://github.com/280north/cappu...

    September 17th, 2008 @ 04:00 PM

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.