diff options
| author | Dave DeLong | 2010-08-15 11:23:20 -0600 |
|---|---|---|
| committer | Dave DeLong | 2010-08-15 11:23:20 -0600 |
| commit | 3907cfe61dc13daa38b779f7596a424222c1d74c (patch) | |
| tree | 0d21ebce66c988d50ca771c6f5e451cd4c6c3eba /DDHotKeyCenter.h | |
| parent | 8f564da37891b67325f86b6b0ec80150056d3d52 (diff) | |
| download | DDHotKey-3907cfe61dc13daa38b779f7596a424222c1d74c.tar.bz2 | |
Updated macro to the more appropriate NS_BLOCKS_AVAILABLE
Diffstat (limited to 'DDHotKeyCenter.h')
| -rw-r--r-- | DDHotKeyCenter.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/DDHotKeyCenter.h b/DDHotKeyCenter.h index 05cfbfc..1991a31 100644 --- a/DDHotKeyCenter.h +++ b/DDHotKeyCenter.h @@ -10,9 +10,7 @@ #import <Cocoa/Cocoa.h> -#define BUILD_FOR_SNOWLEOPARD (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6) - -#if BUILD_FOR_SNOWLEOPARD +#if NS_BLOCKS_AVAILABLE //a convenient typedef for the required signature of a hotkey block callback typedef void (^DDHotKeyTask)(NSEvent*); #endif @@ -28,7 +26,7 @@ typedef void (^DDHotKeyTask)(NSEvent*); */ - (BOOL) registerHotKeyWithKeyCode:(unsigned short)keyCode modifierFlags:(NSUInteger)flags target:(id)target action:(SEL)action object:(id)object; -#if BUILD_FOR_SNOWLEOPARD +#if NS_BLOCKS_AVAILABLE /** Register a block callback hotkey. The modifierFlags must be a bitwise OR of NSCommandKeyMask, NSAlternateKeyMask, NSControlKeyMask, or NSShiftKeyMask; |
