rename imageNodeDidStartLoading to imageNodeDidStartFetchingData

This commit is contained in:
Garrett Moon
2016-02-12 15:10:58 -08:00
parent cf1e4c87f5
commit 7d80fb31bd
2 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ NS_ASSUME_NONNULL_BEGIN
* *
* @discussion Called on a background queue. * @discussion Called on a background queue.
*/ */
- (void)imageNodeDidStartLoading:(ASNetworkImageNode *)imageNode; - (void)imageNodeDidStartFetchingData:(ASNetworkImageNode *)imageNode;
/** /**
* Notification that the image node failed to download the image. * Notification that the image node failed to download the image.

View File

@@ -35,7 +35,7 @@
BOOL _imageLoaded; BOOL _imageLoaded;
BOOL _delegateSupportsDidStartLoading; BOOL _delegateSupportsDidStartFetchingData;
BOOL _delegateSupportsDidFailWithError; BOOL _delegateSupportsDidFailWithError;
BOOL _delegateSupportsImageNodeDidFinishDecoding; BOOL _delegateSupportsImageNodeDidFinishDecoding;
@@ -150,7 +150,7 @@
ASDN::MutexLocker l(_lock); ASDN::MutexLocker l(_lock);
_delegate = delegate; _delegate = delegate;
_delegateSupportsDidStartLoading = [delegate respondsToSelector:@selector(imageNodeDidStartLoading:)]; _delegateSupportsDidStartFetchingData = [delegate respondsToSelector:@selector(imageNodeDidStartFetchingData:)];
_delegateSupportsDidFailWithError = [delegate respondsToSelector:@selector(imageNode:didFailWithError:)]; _delegateSupportsDidFailWithError = [delegate respondsToSelector:@selector(imageNode:didFailWithError:)];
_delegateSupportsImageNodeDidFinishDecoding = [delegate respondsToSelector:@selector(imageNodeDidFinishDecoding:)]; _delegateSupportsImageNodeDidFinishDecoding = [delegate respondsToSelector:@selector(imageNodeDidFinishDecoding:)];
} }
@@ -289,8 +289,8 @@
if (!_imageLoaded && _URL != nil && _downloadIdentifier == nil) { if (!_imageLoaded && _URL != nil && _downloadIdentifier == nil) {
{ {
ASDN::MutexLocker l(_lock); ASDN::MutexLocker l(_lock);
if (_delegateSupportsDidStartLoading) { if (_delegateSupportsDidStartFetchingData) {
[_delegate imageNodeDidStartLoading:self]; [_delegate imageNodeDidStartFetchingData:self];
} }
} }