Fixed a possible crasher where an ITMultilineTextFieldCell is treated as
[ITKit.git] / ITHotKeyCenter.h
1 /*
2  *      ITKit
3  *  ITHotKeyCenter
4  *
5  *  Original Author : Quentin Carnicelli <...>
6  *   Responsibility : Kent Sutherland <kent.sutherland@ithinksw.com>
7  *   Responsibility : Matthew Judy <mjudy@ithinksw.com>
8  *
9  *  Copyright (c) 2002 - 2003 iThink Software.
10  *  All Rights Reserved
11  *
12  */
13
14
15 #import <AppKit/AppKit.h>
16
17
18 @class ITHotKey;
19
20
21 @interface ITHotKeyCenter : NSObject
22 {
23         NSMutableDictionary*    mHotKeys; //Keys are NSValue of EventHotKeyRef
24         BOOL                    mEventHandlerInstalled;
25 }
26
27 + (id)sharedCenter;
28
29 - (BOOL)registerHotKey: (ITHotKey*)hotKey;
30 - (void)unregisterHotKey: (ITHotKey*)hotKey;
31
32 - (NSArray*)allHotKeys;
33
34 - (void)sendEvent: (NSEvent*)event;
35
36
37 @end