mirror of
https://github.com/TermiT/Flycut.git
synced 2025-02-21 22:43:15 +08:00
27 lines
564 B
Objective-C
27 lines
564 B
Objective-C
//
|
|
// SGHotKeyCenter.h
|
|
// SGHotKeyCenter
|
|
//
|
|
// Created by Justin Williams on 7/26/09.
|
|
// Copyright 2009 Second Gear. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@class SGHotKey;
|
|
|
|
@interface SGHotKeyCenter : NSObject {
|
|
NSMutableDictionary *hotKeys; // Keys are NSValue of EventHotKeyRef
|
|
BOOL eventHandlerInstalled;
|
|
BOOL hasInited;
|
|
}
|
|
|
|
+ (SGHotKeyCenter *)sharedCenter;
|
|
|
|
- (BOOL)registerHotKey:(SGHotKey *)theHotKey;
|
|
- (void)unregisterHotKey:(SGHotKey *)theHotKey;
|
|
|
|
- (NSArray *)allHotKeys;
|
|
- (SGHotKey *)hotKeyWithIdentifier:(id)theIdentifier;
|
|
|
|
@end
|