summaryrefslogtreecommitdiffstats
path: root/DDHotKeyCenter.m
diff options
context:
space:
mode:
Diffstat (limited to 'DDHotKeyCenter.m')
-rw-r--r--DDHotKeyCenter.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/DDHotKeyCenter.m b/DDHotKeyCenter.m
index e2d5997..a389a81 100644
--- a/DDHotKeyCenter.m
+++ b/DDHotKeyCenter.m
@@ -185,7 +185,7 @@ static DDHotKeyCenter *sharedHotKeyCenter = nil;
- (DDHotKey *)registerHotKeyWithKeyCode:(unsigned short)keyCode modifierFlags:(NSUInteger)flags task:(DDHotKeyTask)task {
//we can't add a new hotkey if something already has this combo
- if ([self hasRegisteredHotKeyWithKeyCode:keyCode modifierFlags:flags]) { return NO; }
+ if ([self hasRegisteredHotKeyWithKeyCode:keyCode modifierFlags:flags]) { return NULL; }
DDHotKey *newHotKey = [[DDHotKey alloc] init];
[newHotKey _setTask:task];
@@ -197,7 +197,7 @@ static DDHotKeyCenter *sharedHotKeyCenter = nil;
- (DDHotKey *)registerHotKeyWithKeyCode:(unsigned short)keyCode modifierFlags:(NSUInteger)flags target:(id)target action:(SEL)action object:(id)object {
//we can't add a new hotkey if something already has this combo
- if ([self hasRegisteredHotKeyWithKeyCode:keyCode modifierFlags:flags]) { return NO; }
+ if ([self hasRegisteredHotKeyWithKeyCode:keyCode modifierFlags:flags]) { return NULL; }
//build the hotkey object:
DDHotKey *newHotKey = [[DDHotKey alloc] init];