5 // Created by Quentin Carnicelli on Sat Aug 02 2003.
6 // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved.
9 // Quentin D. Carnicelli
13 #import <Cocoa/Cocoa.h>
16 @interface PTHotKeyCenter
: NSObject
18 NSMutableDictionary
* mHotKeys
; //Keys are NSValue of EventHotKeyRef
19 BOOL mEventHandlerInstalled
;
22 + (PTHotKeyCenter
*)sharedCenter
;
24 - (BOOL
)registerHotKey
: (PTHotKey
*)hotKey
;
25 - (void)unregisterHotKey
: (PTHotKey
*)hotKey
;
27 - (NSArray
*)allHotKeys
;
28 - (PTHotKey
*)hotKeyWithIdentifier
: (id
)ident
;
30 - (void)sendEvent
: (NSEvent
*)event
;