mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Fix compile issue on Yosemite
This commit is contained in:
parent
f73d2f4d24
commit
ce50cbe09f
@ -29,7 +29,7 @@
|
||||
class PlatformInterface;
|
||||
@class SPMediaKeyTap;
|
||||
|
||||
@interface AppDelegate : NSObject<NSApplicationDelegate> {
|
||||
@interface AppDelegate : NSObject<NSApplicationDelegate, NSUserNotificationCenterDelegate> {
|
||||
PlatformInterface* application_handler_;
|
||||
NSMenu* dock_menu_;
|
||||
MacGlobalShortcutBackend* shortcut_handler_;
|
||||
|
@ -250,13 +250,7 @@ static BreakpadRef InitBreakpad() {
|
||||
[delegate_ setShortcutHandler:shortcut_handler_];
|
||||
[self setDelegate:delegate_];
|
||||
|
||||
Class notification_center_class =
|
||||
NSClassFromString(@"NSUserNotificationCenter");
|
||||
if (notification_center_class) {
|
||||
id notification_center =
|
||||
[notification_center_class defaultUserNotificationCenter];
|
||||
[notification_center setDelegate:delegate_];
|
||||
}
|
||||
[[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:delegate_];
|
||||
}
|
||||
|
||||
- (void)sendEvent:(NSEvent*)event {
|
||||
|
Loading…
Reference in New Issue
Block a user