From 3907cfe61dc13daa38b779f7596a424222c1d74c Mon Sep 17 00:00:00 2001 From: Dave DeLong Date: Sun, 15 Aug 2010 11:23:20 -0600 Subject: Updated macro to the more appropriate NS_BLOCKS_AVAILABLE --- DDHotKeyCenter.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'DDHotKeyCenter.h') diff --git a/DDHotKeyCenter.h b/DDHotKeyCenter.h index 05cfbfc..1991a31 100644 --- a/DDHotKeyCenter.h +++ b/DDHotKeyCenter.h @@ -10,9 +10,7 @@ #import -#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; -- cgit v1.2.3