Fix some warnings

This commit is contained in:
LIU Dongyuan / 柳东原
2015-09-20 22:54:10 -07:00
parent d6317dbd67
commit ceeb182317
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
#import "QSHStatusItemView.h"
#import "QSHAppDelegate.h"
@interface QSHWebViewDelegate : NSObject
@interface QSHWebViewDelegate : NSObject <WebUIDelegate, WebFrameLoadDelegate>
@property (nonatomic, weak) QSHAppDelegate *appDelegate;
@property (nonatomic, weak) NSStatusItem *statusItem;

View File

@@ -19,7 +19,7 @@
static NSString * const kWebScriptNamespace = @"quark";
static const NSInteger kPreferencesDefaultHeight = 192;
@interface QSHWebViewDelegate () <NSUserNotificationCenterDelegate> {
@interface QSHWebViewDelegate () <NSUserNotificationCenterDelegate, WebPolicyDelegate> {
NSString *appVersion;
NSString *appBundleVersion;
NSString *platform;
@@ -293,7 +293,7 @@ static const NSInteger kPreferencesDefaultHeight = 192;
- (void)removeAllScheduledNotifications
{
NSUserNotificationCenter *notificationCenter = [NSUserNotificationCenter defaultUserNotificationCenter];
notificationCenter.scheduledNotifications = nil;
notificationCenter.scheduledNotifications = @[];
}
- (void)removeAllDeliveredNotifications