summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave DeLong2010-02-26 14:38:59 -0700
committerDave DeLong2010-02-26 14:38:59 -0700
commit3eb84979081c9651a6def70e4b59f4bd1c918cbc (patch)
tree9749424e20cd36e97cddcd0658280cb971775736
parentf9c02364f1e5f14c4c2e9cde7ed0052500f75c8d (diff)
downloadDDHotKey-3eb84979081c9651a6def70e4b59f4bd1c918cbc.tar.bz2
Minor API name change to more closely follow convention
-rw-r--r--DDHotKeyAppDelegate.m2
-rw-r--r--DDHotKeyCenter.h2
-rw-r--r--DDHotKeyCenter.m2
3 files changed, 3 insertions, 3 deletions
diff --git a/DDHotKeyAppDelegate.m b/DDHotKeyAppDelegate.m
index 0599be2..8857060 100644
--- a/DDHotKeyAppDelegate.m
+++ b/DDHotKeyAppDelegate.m
@@ -67,7 +67,7 @@
[self addOutput:[NSString stringWithFormat:@"Hotkey event: %@", hkEvent]];
[self addOutput:[NSString stringWithFormat:@"the answer is: %d", theAnswer]];
};
- if (![c registerHotKeyWithKeyCode:9 modifierFlags:(NSControlKeyMask | NSAlternateKeyMask | NSCommandKeyMask) block:task]) {
+ if (![c registerHotKeyWithKeyCode:9 modifierFlags:(NSControlKeyMask | NSAlternateKeyMask | NSCommandKeyMask) task:task]) {
[self addOutput:@"Unable to register hotkey for example 3"];
} else {
[self addOutput:@"Registered hotkey for example 3"];
diff --git a/DDHotKeyCenter.h b/DDHotKeyCenter.h
index 25a6fbd..05cfbfc 100644
--- a/DDHotKeyCenter.h
+++ b/DDHotKeyCenter.h
@@ -34,7 +34,7 @@ typedef void (^DDHotKeyTask)(NSEvent*);
The modifierFlags must be a bitwise OR of NSCommandKeyMask, NSAlternateKeyMask, NSControlKeyMask, or NSShiftKeyMask;
Returns YES if the hotkey was registered; NO otherwise.
*/
-- (BOOL) registerHotKeyWithKeyCode:(unsigned short)keyCode modifierFlags:(NSUInteger)flags block:(DDHotKeyTask)task;
+- (BOOL) registerHotKeyWithKeyCode:(unsigned short)keyCode modifierFlags:(NSUInteger)flags task:(DDHotKeyTask)task;
#endif
/**
diff --git a/DDHotKeyCenter.m b/DDHotKeyCenter.m
index b190cf9..dffdced 100644
--- a/DDHotKeyCenter.m
+++ b/DDHotKeyCenter.m
@@ -134,7 +134,7 @@ NSUInteger dd_translateModifierFlags(NSUInteger flags);
}
#if BUILD_FOR_SNOWLEOPARD
-- (BOOL) registerHotKeyWithKeyCode:(unsigned short)keyCode modifierFlags:(NSUInteger)flags block:(DDHotKeyTask)task {
+- (BOOL) 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; }