Commit 0b2b194c authored by Brendan Shanks's avatar Brendan Shanks

macOS: Mark GVWindowController as conforming to PDFViewDelegate

Fixes a warning when building against new SDKs. Also add a dummy
protocol for pre-10.13 SDKs which don't define it.
parent 11942885
......@@ -15,7 +15,11 @@
#import <AppKit/AppKit.h>
#import <Quartz/Quartz.h>
@interface GVWindowController : NSWindowController <NSUserInterfaceValidations>
#if !defined(MAC_OS_X_VERSION_10_13) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_13
@protocol PDFViewDelegate <NSObject> @end
#endif
@interface GVWindowController : NSWindowController <NSUserInterfaceValidations, PDFViewDelegate>
{
IBOutlet PDFView *documentView;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment