diff options
| author | Gabriel Handford | 2016-05-16 15:09:40 -0700 | 
|---|---|---|
| committer | Gabriel Handford | 2016-05-16 15:09:40 -0700 | 
| commit | abdbf886c96d0390fd582fd7a4e9e2924c9ed740 (patch) | |
| tree | eaa10364e46907c8b888d6266646cae63c780049 /notifier_darwin.m | |
| parent | 1a97dd20fd0dd0bc898364570b516d729fbcd869 (diff) | |
| download | go-notifier-abdbf886c96d0390fd582fd7a4e9e2924c9ed740.tar.bz2 | |
Specify default timeout
Diffstat (limited to 'notifier_darwin.m')
| -rw-r--r-- | notifier_darwin.m | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/notifier_darwin.m b/notifier_darwin.m index 6e4c5ac..1baf885 100644 --- a/notifier_darwin.m +++ b/notifier_darwin.m @@ -33,7 +33,7 @@ static BOOL installFakeBundleIdentifierHook() {  @end  CFStringRef deliverNotification(CFStringRef titleRef, CFStringRef subtitleRef, CFStringRef messageRef, CFStringRef appIconURLStringRef, -  CFArrayRef actionsRef, CFStringRef bundleIDRef, CFStringRef groupIDRef, NSTimeInterval timeout) { +  CFArrayRef actionsRef, CFStringRef bundleIDRef, CFStringRef groupIDRef, NSTimeInterval timeout, bool debug) {    if (bundleIDRef) {      _fakeBundleIdentifier = (NSString *)bundleIDRef; @@ -71,7 +71,7 @@ CFStringRef deliverNotification(CFStringRef titleRef, CFStringRef subtitleRef, C    }    NSUserNotificationCenter *userNotificationCenter = [NSUserNotificationCenter defaultUserNotificationCenter]; -  //NSLog(@"Deliver: %@", userNotification); +  if (debug) NSLog(@"Deliver: %@", userNotification);    NotificationDelegate *delegate = [[NotificationDelegate alloc] init];    delegate.timeout = timeout;    delegate.uuid = uuid; | 
