diff options
| -rw-r--r-- | DDHotKeyAppDelegate.m | 2 | ||||
| -rw-r--r-- | DDHotKeyCenter.h | 2 | ||||
| -rw-r--r-- | DDHotKeyCenter.m | 2 | 
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; } | 
