Skip to content

Commit

Permalink
pdf association bug fix. Honestly I don't know why it worked before.
Browse files Browse the repository at this point in the history
  • Loading branch information
yujitach committed Aug 31, 2018
1 parent 7296167 commit 7555504
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SpiresAppDelegate.h
Expand Up @@ -7,6 +7,7 @@
//

#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
@class ArticleView;
@class SideOutlineViewController;
@class HistoryController;
Expand All @@ -21,7 +22,7 @@

#import "AppDelegate.h"

@interface SpiresAppDelegate : NSObject <AppDelegate>
@interface SpiresAppDelegate : NSObject <AppDelegate,WebUIDelegate,WebPolicyDelegate>
{
IBOutlet NSWindow *window;
IBOutlet NSToolbar*tb;
Expand Down
6 changes: 6 additions & 0 deletions SpiresAppDelegate.m
Expand Up @@ -676,6 +676,7 @@ -(void)handleURL:(NSURL*) url
];
}else{
[o associatePDF:[url path]];
[wv setArticle:o];
}
}
}
Expand Down Expand Up @@ -748,6 +749,11 @@ - (void)webView:(WebView *)sender willPerformDragSourceAction:(WebDragSourceActi
}
}
}

-(NSUInteger)webView:(WebView *)webView dragDestinationActionMaskForDraggingInfo:(id<NSDraggingInfo>)draggingInfo
{
return WebDragDestinationActionAny;
}
#pragma mark Default provided by templates


Expand Down

0 comments on commit 7555504

Please sign in to comment.