Revision: 23985
          http://sourceforge.net/p/bibdesk/svn/23985
Author:   hofman
Date:     2019-07-09 22:18:41 +0000 (Tue, 09 Jul 2019)
Log Message:
-----------
return a window for the download authentication sheet for web parser

Modified Paths:
--------------
    trunk/bibdesk/BDSKAsynchronousWebParser.h
    trunk/bibdesk/BDSKAsynchronousWebParser.m

Modified: trunk/bibdesk/BDSKAsynchronousWebParser.h
===================================================================
--- trunk/bibdesk/BDSKAsynchronousWebParser.h   2019-07-09 22:12:48 UTC (rev 
23984)
+++ trunk/bibdesk/BDSKAsynchronousWebParser.h   2019-07-09 22:18:41 UTC (rev 
23985)
@@ -43,6 +43,7 @@
 
 @protocol BDSKCitationDownloadDelegate <NSObject>
 - (void)downloadDidFinish:(BDSKCitationDownload *)download;
+- (NSWindow 
*)citationDownloadWindowForAuthenticationSheet:(BDSKCitationDownload *)download;
 @end
 
 #pragma mark -

Modified: trunk/bibdesk/BDSKAsynchronousWebParser.m
===================================================================
--- trunk/bibdesk/BDSKAsynchronousWebParser.m   2019-07-09 22:12:48 UTC (rev 
23984)
+++ trunk/bibdesk/BDSKAsynchronousWebParser.m   2019-07-09 22:18:41 UTC (rev 
23985)
@@ -139,6 +139,10 @@
         [[self delegate] webParser:self didFinishWithSuccess:success 
error:nil];
 }
 
+- (NSWindow 
*)citationDownloadWindowForAuthenticationSheet:(BDSKCitationDownload *)download 
{
+    return [delegate windowForSheetForObject:self];
+}
+
 - (void)addDownloadWithRequest:(NSURLRequest *)request 
contextInfo:(id)contextInfo {
     BDSKCitationDownload *download = [[BDSKCitationDownload alloc] 
initWithRequest:request delegate:self];
     
@@ -237,6 +241,10 @@
     [delegate downloadDidFinish:self];
 }
 
+- (NSWindow *)downloader:(BDSKDownloader *)downloader 
downloadWindowForAuthenticationSheet:(BDSKDownload *)download {
+    return [delegate citationDownloadWindowForAuthenticationSheet:self];
+}
+
 - (void)cancel {
     delegate = nil;
     [download cancel];

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

Reply via email to