Permalink
Browse files

Fix the name of the SDWebImageManagerDelegate protocol

  • Loading branch information...
1 parent 2fa0626 commit 79c5fa177da5bd41331192c4cbfc2cdbb269de8a @rs rs committed Sep 28, 2009
View
@@ -8,7 +8,7 @@
#import <UIKit/UIKit.h>
#import "SDWebImageDownloaderDelegate.h"
-#import "SDWebImageHelperDelegate.h"
+#import "SDWebImageManagerDelegate.h"
@interface SDWebImageManager : NSObject <SDWebImageDownloaderDelegate>
{
View
@@ -92,7 +92,6 @@ - (void)cancelForDelegate:(id<SDWebImageManagerDelegate>)delegate
if (![downloaders containsObject:downloader])
{
- NSLog(@"cancel download");
// No more delegate are waiting for this download, cancel it
[downloader cancel];
[downloaderForURL removeObjectForKey:downloader.url];
@@ -116,9 +115,9 @@ - (void)imageDownloader:(SDWebImageDownloader *)downloader didFinishWithImage:(U
{
id<SDWebImageManagerDelegate> delegate = [delegates objectAtIndex:index];
- if (image && [delegate respondsToSelector:@selector(imageHelper:didFinishWithImage:)])
+ if (image && [delegate respondsToSelector:@selector(webImageManager:didFinishWithImage:)])
{
- [delegate performSelector:@selector(imageHelper:didFinishWithImage:) withObject:self withObject:image];
+ [delegate performSelector:@selector(webImageManager:didFinishWithImage:) withObject:self withObject:image];
}
[downloaders removeObjectAtIndex:index];
@@ -12,6 +12,6 @@
@optional
-- (void)imageHelper:(SDWebImageManager *)imageHelper didFinishWithImage:(UIImage *)image;
+- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image;
@end
@@ -7,7 +7,7 @@
*/
#import <UIKit/UIKit.h>
-#import "SDWebImageHelperDelegate.h"
+#import "SDWebImageManagerDelegate.h"
@interface UIImageView (WebCache) <SDWebImageManagerDelegate>
@@ -40,7 +40,7 @@ - (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder
}
}
-- (void)imageHelper:(SDWebImageManager *)imageHelper didFinishWithImage:(UIImage *)image
+- (void)webImageManager:(SDWebImageManager *)imageManager didFinishWithImage:(UIImage *)image
{
self.image = image;
}

0 comments on commit 79c5fa1

Please sign in to comment.