Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (36 sloc) 0.925 kB
//
// JFHotkeyManager.h
// JFHotkeyManager
//
// Created by Jason Frame on 23/02/2010.
// Copyright 2010 Jason Frame. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>
typedef NSUInteger JFHotKeyRef;
@interface JFHotkeyManager : NSObject {
NSMutableDictionary *_hotkeys;
NSUInteger _nextId;
}
- (JFHotKeyRef)bind:(NSString *)commandString
target:(id)target
action:(SEL)selector;
- (JFHotKeyRef)bindKeyRef:(NSUInteger)keyRef
withModifiers:(NSUInteger)modifiers
target:(id)target
action:(SEL)selector;
- (void)unbind:(JFHotKeyRef)keyRef;
- (void)_dispatch:(NSUInteger)hotkeyId;
@end
@interface __JFHotkey : NSObject {
id _target;
SEL _action;
EventHotKeyRef _ref;
}
- (id)initWithHotkeyID:(NSUInteger)hotkeyID
keyRef:(NSUInteger)keyRef
modifiers:(NSUInteger)modifiers
target:(id)target
action:(SEL)selector;
- (void)invoke;
@end
Jump to Line
Something went wrong with that request. Please try again.