From 75555049431e66e221b87b160f5d0cdbd77fb708 Mon Sep 17 00:00:00 2001 From: Yuji Date: Fri, 31 Aug 2018 10:27:09 +0900 Subject: [PATCH] pdf association bug fix. Honestly I don't know why it worked before. --- SpiresAppDelegate.h | 3 ++- SpiresAppDelegate.m | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/SpiresAppDelegate.h b/SpiresAppDelegate.h index 5ec7dc7..01da49c 100644 --- a/SpiresAppDelegate.h +++ b/SpiresAppDelegate.h @@ -7,6 +7,7 @@ // #import +#import @class ArticleView; @class SideOutlineViewController; @class HistoryController; @@ -21,7 +22,7 @@ #import "AppDelegate.h" -@interface SpiresAppDelegate : NSObject +@interface SpiresAppDelegate : NSObject { IBOutlet NSWindow *window; IBOutlet NSToolbar*tb; diff --git a/SpiresAppDelegate.m b/SpiresAppDelegate.m index 9159011..6059541 100644 --- a/SpiresAppDelegate.m +++ b/SpiresAppDelegate.m @@ -676,6 +676,7 @@ -(void)handleURL:(NSURL*) url ]; }else{ [o associatePDF:[url path]]; + [wv setArticle:o]; } } } @@ -748,6 +749,11 @@ - (void)webView:(WebView *)sender willPerformDragSourceAction:(WebDragSourceActi } } } + +-(NSUInteger)webView:(WebView *)webView dragDestinationActionMaskForDraggingInfo:(id)draggingInfo +{ + return WebDragDestinationActionAny; +} #pragma mark Default provided by templates