Revision: 7211
http://skim-app.svn.sourceforge.net/skim-app/?rev=7211&view=rev
Author: hofman
Date: 2011-04-13 13:05:06 +0000 (Wed, 13 Apr 2011)
Log Message:
-----------
make download delegate method required
Modified Paths:
--------------
trunk/SKDownload.h
trunk/SKDownload.m
Modified: trunk/SKDownload.h
===================================================================
--- trunk/SKDownload.h 2011-04-13 11:59:38 UTC (rev 7210)
+++ trunk/SKDownload.h 2011-04-13 13:05:06 UTC (rev 7211)
@@ -97,7 +97,6 @@
@protocol SKDownloadDelegate <NSObject>
-@optional
- (void)downloadDidEnd:(SKDownload *)download;
Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m 2011-04-13 11:59:38 UTC (rev 7210)
+++ trunk/SKDownload.m 2011-04-13 13:05:06 UTC (rev 7211)
@@ -245,8 +245,7 @@
[URLDownload cancel];
[self setStatus:SKDownloadStatusCanceled];
- if ([delegate respondsToSelector:@selector(downloadDidEnd:)])
- [delegate downloadDidEnd:self];
+ [delegate downloadDidEnd:self];
}
}
@@ -333,8 +332,7 @@
if (expectedContentLength > 0)
[progressIndicator
setDoubleValue:(double)expectedContentLength];
[self setStatus:SKDownloadStatusFinished];
- if ([delegate respondsToSelector:@selector(downloadDidEnd:)])
- [delegate downloadDidEnd:self];
+ [delegate downloadDidEnd:self];
}
- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error {
@@ -342,8 +340,7 @@
if (filePath)
[[NSFileManager defaultManager] removeItemAtPath:filePath error:NULL];
[self setFilePath:nil];
- if ([delegate respondsToSelector:@selector(downloadDidEnd:)])
- [delegate downloadDidEnd:self];
+ [delegate downloadDidEnd:self];
}
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit