mirror of
https://github.com/HackPlan/quark-shell-mac.git
synced 2026-04-30 12:32:32 +08:00
Fix some warnings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user