1
0
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:
Arnaud Bienner 2015-02-15 16:43:36 +01:00
parent f73d2f4d24
commit ce50cbe09f
2 changed files with 2 additions and 8 deletions

View File

@ -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_;

View File

@ -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 {