Revision: 5923
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5923&view=rev
Author:   hofman
Date:     2009-10-21 15:20:15 +0000 (Wed, 21 Oct 2009)

Log Message:
-----------
more sensible delegate method name, let the view determine that it's supposed 
to redisplay

Modified Paths:
--------------
    trunk/SKTransitionController.m

Modified: trunk/SKTransitionController.m
===================================================================
--- trunk/SKTransitionController.m      2009-10-21 15:13:39 UTC (rev 5922)
+++ trunk/SKTransitionController.m      2009-10-21 15:20:15 UTC (rev 5923)
@@ -114,8 +114,7 @@
 #pragma mark -
 
 @protocol SKTransitionAnimationDelegate <NSAnimationDelegate>
-...@optional
-- (void)display;
+- (void)animationDidUpdate:(NSAnimation *)anAnimation;
 @end
 
 @interface SKTransitionAnimation : NSAnimation {
@@ -561,7 +560,7 @@
 - (void)setCurrentProgress:(NSAnimationProgress)progress {
     [super setCurrentProgress:progress];
     [filter setValue:[NSNumber numberWithDouble:[self currentValue]] 
forKey:@"inputTime"];
-    [[self delegate] display];
+    [[self delegate] animationDidUpdate:self];
 }
 
 - (CIImage *)currentImage {
@@ -634,6 +633,10 @@
     needsReshape = YES;
 }
 
+- (void)animationDidUpdate:(NSAnimation *)anAnimation {
+    [self display];
+}
+
 - (SKTransitionAnimation *)animation {
     return animation;
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to