Adding HotKeys to ITKit... This is the new HotKey code by Quentin of
[ITKit.git] / ITHotKeyCenter.h
diff --git a/ITHotKeyCenter.h b/ITHotKeyCenter.h
new file mode 100755 (executable)
index 0000000..e984bc5
--- /dev/null
@@ -0,0 +1,27 @@
+//
+//  ITHotKeyCenter.h
+//
+//  Created by Quentin Carnicelli on Sat Aug 02 2003.
+//  Copyright (c) 2003 iThink Software. All rights reserved.
+//
+
+#import <AppKit/AppKit.h>
+
+@class ITHotKey;
+
+@interface ITHotKeyCenter : NSObject
+{
+       NSMutableDictionary*    mHotKeys; //Keys are NSValue of EventHotKeyRef
+       BOOL                    mEventHandlerInstalled;
+}
+
++ (id)sharedCenter;
+
+- (BOOL)registerHotKey: (ITHotKey*)hotKey;
+- (void)unregisterHotKey: (ITHotKey*)hotKey;
+
+- (NSArray*)allHotKeys;
+
+- (void)sendEvent: (NSEvent*)event;
+
+@end