summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools/Notifier/NotificationCenterNotifierDelegate.mm')
-rw-r--r--SwifTools/Notifier/NotificationCenterNotifierDelegate.mm26
1 files changed, 26 insertions, 0 deletions
diff --git a/SwifTools/Notifier/NotificationCenterNotifierDelegate.mm b/SwifTools/Notifier/NotificationCenterNotifierDelegate.mm
new file mode 100644
index 0000000..617619c
--- /dev/null
+++ b/SwifTools/Notifier/NotificationCenterNotifierDelegate.mm
@@ -0,0 +1,26 @@
1/*
2 * Copyright (c) 2015 Isode Limited.
3 * All rights reserved.
4 * See the COPYING file for more information.
5 */
6
7#import "SwifTools/Notifier/NotificationCenterNotifierDelegate.h"
8
9#include <string>
10
11#include <SwifTools/Cocoa/CocoaUtil.h>
12#include <SwifTools/Notifier/NotificationCenterNotifier.h>
13
14@implementation NotificationCenterNotifierDelegate
15
16using namespace Swift;
17
18@synthesize notifier;
19
20- (void)userNotificationCenter:(NSUserNotificationCenter *) center didActivateNotification:(NSUserNotification *)notification {
21 (void)center;
22 std::string identifier = NS2STDSTRING(notification.identifier);
23 notifier->handleUserNotificationActivated(identifier);
24}
25
26@end