blob: 271d953f185b464fa91f2a2efe0c1c68331c6dbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
* Copyright (c) 2012 Tobias Markmann
* Licensed under the simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#import "NotificationCenterNotifierDelegate.h"
#include <SwifTools/Notifier/NotificationCenterNotifier.h>
@implementation NotificationCenterNotifierDelegate;
@synthesize notifier;
using namespace Swift;
- (void) userNotificationCenter:(NSUserNotificationCenter *) center didActivateNotification:(NSUserNotification *) notification {
notifier->handleNotificationClicked(notification);
//Remove the notification
[center removeDeliveredNotification:notification];
}
@end
|