Authored by Olivier Poitrey

Merge pull request #737 from openresearch/master

Fix build on Xcode6
@@ -11,7 +11,10 @@ @@ -11,7 +11,10 @@
11 #import "UIImage+MultiFormat.h" 11 #import "UIImage+MultiFormat.h"
12 #import <ImageIO/ImageIO.h> 12 #import <ImageIO/ImageIO.h>
13 13
14 -@interface SDWebImageDownloaderOperation () 14 +@interface SDWebImageDownloaderOperation () {
  15 + BOOL _executing;
  16 + BOOL _finished;
  17 +}
15 18
16 @property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock; 19 @property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;
17 @property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock; 20 @property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;
@@ -173,12 +176,22 @@ @@ -173,12 +176,22 @@
173 [self didChangeValueForKey:@"isFinished"]; 176 [self didChangeValueForKey:@"isFinished"];
174 } 177 }
175 178
  179 +- (BOOL)finished
  180 +{
  181 + return _finished;
  182 +}
  183 +
176 - (void)setExecuting:(BOOL)executing { 184 - (void)setExecuting:(BOOL)executing {
177 [self willChangeValueForKey:@"isExecuting"]; 185 [self willChangeValueForKey:@"isExecuting"];
178 _executing = executing; 186 _executing = executing;
179 [self didChangeValueForKey:@"isExecuting"]; 187 [self didChangeValueForKey:@"isExecuting"];
180 } 188 }
181 189
  190 +- (BOOL)executing
  191 +{
  192 + return _executing;
  193 +}
  194 +
182 - (BOOL)isConcurrent { 195 - (BOOL)isConcurrent {
183 return YES; 196 return YES;
184 } 197 }