Don't pollute headers with version checks.

This commit is contained in:
Jake Petroules committed 2015-07-27 10:47:09 -07:00
1 parent d7b4d7c761
commit 7347631d34
2 files changed
+12 -13

No files matched your search

+2 -12
View File
@@ -9,19 +9,9 @@
#ifndef SUUPDATEALERT_H
#define SUUPDATEALERT_H
#import <WebKit/WebKit.h>
#import "SUWindowController.h"
#import "SUVersionDisplayProtocol.h"
// WebKit protocols are not explicitly declared until 10.11 SDK, so
// declare dummy protocols to keep the build working on earlier SDKs.
#if !defined(MAC_OS_X_VERSION_10_11)
@protocol WebFrameLoadDelegate
@end
@protocol WebPolicyDelegate
@end
#endif
@protocol SUUpdateAlertDelegate;
typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) {
@@ -31,8 +21,8 @@ typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) {
SUOpenInfoURLChoice
};
@class WebView, SUAppcastItem, SUHost;
@interface SUUpdateAlert : SUWindowController <WebFrameLoadDelegate, WebPolicyDelegate>
@class SUAppcastItem, SUHost;
@interface SUUpdateAlert : SUWindowController
@property (weak) id<SUVersionDisplay> versionDisplayer;
+10 -1
View File
@@ -17,7 +17,16 @@
#import "SUConstants.h"
@interface SUUpdateAlert ()
// WebKit protocols are not explicitly declared until 10.11 SDK, so
// declare dummy protocols to keep the build working on earlier SDKs.
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101100
@protocol WebFrameLoadDelegate <NSObject>
@end
@protocol WebPolicyDelegate <NSObject>
@end
#endif
@interface SUUpdateAlert () <WebFrameLoadDelegate, WebPolicyDelegate>
@property (strong) SUAppcastItem *updateItem;
@property (strong) SUHost *host;