summaryrefslogtreecommitdiffstats
path: root/DDHotKeyUtilities.h
diff options
context:
space:
mode:
authorDave DeLong2013-10-26 10:42:28 -0700
committerDave DeLong2013-10-26 10:42:28 -0700
commit6e52b1f4753d8363c4ced6dd779ac92716e49fb0 (patch)
treed7300ecc85ec3e0c9e26a538bec865836d6c69ab /DDHotKeyUtilities.h
parentbc90e5a3f070877f00e8f7e6fe99880555450284 (diff)
downloadDDHotKey-6e52b1f4753d8363c4ced6dd779ac92716e49fb0.tar.bz2
DDHotKey now requires ARC.
It also has a basic "HotKeyTextField" for creating user-defined hotkeys.
Diffstat (limited to 'DDHotKeyUtilities.h')
-rw-r--r--DDHotKeyUtilities.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/DDHotKeyUtilities.h b/DDHotKeyUtilities.h
new file mode 100644
index 0000000..54b25a4
--- /dev/null
+++ b/DDHotKeyUtilities.h
@@ -0,0 +1,14 @@
+/*
+ DDHotKey -- DDHotKeyUtilities.h
+
+ Copyright (c) Dave DeLong <http://www.davedelong.com>
+
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
+
+ The software is provided "as is", without warranty of any kind, including all implied warranties of merchantability and fitness. In no event shall the author(s) or copyright holder(s) be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.
+ */
+
+#import <Foundation/Foundation.h>
+
+extern NSString *DDStringFromKeyCode(unsigned short keyCode, NSUInteger modifiers);
+extern UInt32 DDCarbonModifierFlagsFromCocoaModifiers(NSUInteger flags);