X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/29eb1a7ef6ff49cace92432b1813845fd3a7d1e9..d9649564199a7220e70716aa0999c6fddb0efadc:/ITHotKeyCenter.h?ds=inline diff --git a/ITHotKeyCenter.h b/ITHotKeyCenter.h new file mode 100755 index 0000000..e984bc5 --- /dev/null +++ b/ITHotKeyCenter.h @@ -0,0 +1,27 @@ +// +// ITHotKeyCenter.h +// +// Created by Quentin Carnicelli on Sat Aug 02 2003. +// Copyright (c) 2003 iThink Software. All rights reserved. +// + +#import + +@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