Revision: 27642
http://sourceforge.net/p/bibdesk/svn/27642
Author: hofman
Date: 2022-06-17 22:39:35 +0000 (Fri, 17 Jun 2022)
Log Message:
-----------
derive failure from error
Modified Paths:
--------------
trunk/bibdesk/BDSKAsynchronousWebParser.h
trunk/bibdesk/BDSKAsynchronousWebParser.m
Modified: trunk/bibdesk/BDSKAsynchronousWebParser.h
===================================================================
--- trunk/bibdesk/BDSKAsynchronousWebParser.h 2022-06-17 22:34:09 UTC (rev
27641)
+++ trunk/bibdesk/BDSKAsynchronousWebParser.h 2022-06-17 22:39:35 UTC (rev
27642)
@@ -85,7 +85,6 @@
id<BDSKCitationDownloadDelegate> delegate;
NSURLRequest *request;
NSError *error;
- BOOL failed;
id contextInfo;
}
Modified: trunk/bibdesk/BDSKAsynchronousWebParser.m
===================================================================
--- trunk/bibdesk/BDSKAsynchronousWebParser.m 2022-06-17 22:34:09 UTC (rev
27641)
+++ trunk/bibdesk/BDSKAsynchronousWebParser.m 2022-06-17 22:39:35 UTC (rev
27642)
@@ -177,8 +177,8 @@
@implementation BDSKCitationDownload
-@synthesize error, failed, contextInfo;
-@dynamic URL, data, string;
+@synthesize error, contextInfo;
+@dynamic URL, data, string, failed;
- (void)dealloc {
delegate = nil;
@@ -228,15 +228,16 @@
return string;
}
+- (BOOL)failed {
+ return error != nil;
+}
+
- (void)start {
download = [[[BDSKDownloader sharedDownloader]
startDataDownloadWithRequest:request delegate:self] retain];
}
- (void)downloader:(BDSKDownloader *)downloader download:(BDSKDownload
*)aDownload didCompleteWithError:(NSError *)downloadError {
- if (downloadError) {
- error = [downloadError retain];
- failed = YES;
- }
+ error = [downloadError retain];
[delegate downloadDidFinish:self];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit