From e1828bd4ed598f99ab4f7c1c5b292059b3d66fab Mon Sep 17 00:00:00 2001 From: Paul David Date: Wed, 3 Jul 2019 21:01:35 +1000 Subject: [PATCH] =?UTF-8?q?debounce.m:=20Neaten=20up=20comments.=20?= =?UTF-8?q?=F0=9F=8C=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debounce.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debounce.m b/debounce.m index a83a0dc..a7000e4 100644 --- a/debounce.m +++ b/debounce.m @@ -1,4 +1,4 @@ -// compile and run from the commandline with: +// compile and run from the command-line with: // clang -fobjc-arc -framework Cocoa ./debounce.m -o debounce // sudo ./debounce @@ -43,7 +43,7 @@ CGEventRef _tapCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef even (CGEventTapCallBack)_tapCallback, (__bridge void *)(self)); if (!_eventTap) { - NSLog(@"Unable to create event tap. Must run as root or add privlidges for assistive devices to this app."); + NSLog(@"Unable to create event tap. Must run as root or add Accessibility privileges to this app."); return NO; } } @@ -130,7 +130,7 @@ CGEventRef _tapCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef even // NSEvent will throw an exception if we try to make an event from the tap timeout type @autoreleasepool { if(type == kCGEventTapDisabledByTimeout) { - NSLog(@"event tap has timed out, re-enabling tap"); + NSLog(@"Event tap has timed out, re-enabling tap."); [listener tapEvents]; return nil; }