No need for explicit ivar and getters, as long as we have the @synthesize in place
This commit is contained in:
parent
39db378082
commit
0b47342b2f
|
@ -12,10 +12,7 @@
|
||||||
#import <ImageIO/ImageIO.h>
|
#import <ImageIO/ImageIO.h>
|
||||||
#import "SDWebImageManager.h"
|
#import "SDWebImageManager.h"
|
||||||
|
|
||||||
@interface SDWebImageDownloaderOperation () <NSURLConnectionDataDelegate> {
|
@interface SDWebImageDownloaderOperation () <NSURLConnectionDataDelegate>
|
||||||
BOOL _executing;
|
|
||||||
BOOL _finished;
|
|
||||||
}
|
|
||||||
|
|
||||||
@property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;
|
@property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;
|
||||||
@property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;
|
@property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;
|
||||||
|
@ -181,22 +178,12 @@
|
||||||
[self didChangeValueForKey:@"isFinished"];
|
[self didChangeValueForKey:@"isFinished"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)isFinished
|
|
||||||
{
|
|
||||||
return _finished;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)setExecuting:(BOOL)executing {
|
- (void)setExecuting:(BOOL)executing {
|
||||||
[self willChangeValueForKey:@"isExecuting"];
|
[self willChangeValueForKey:@"isExecuting"];
|
||||||
_executing = executing;
|
_executing = executing;
|
||||||
[self didChangeValueForKey:@"isExecuting"];
|
[self didChangeValueForKey:@"isExecuting"];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)isExecuting
|
|
||||||
{
|
|
||||||
return _executing;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)isConcurrent {
|
- (BOOL)isConcurrent {
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue