Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9469ca7a40
37 lines (29 sloc) 0.929 kb
//
// SGHotKey.h
// SGHotKeyCenter
//
// Created by Justin Williams on 7/26/09.
// Copyright 2009 Second Gear. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <Carbon/Carbon.h>
#import "SGKeyCombo.h"
@interface SGHotKey : NSObject {
NSString *identifier;
NSString *name;
SGKeyCombo *keyCombo;
id target;
SEL action;
EventHotKeyID hotKeyID;
}
@property (nonatomic, copy) NSString *identifier;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, retain) SGKeyCombo *keyCombo;
@property (nonatomic, assign) id target;
@property (nonatomic, assign) SEL action;
@property (nonatomic, assign) EventHotKeyID hotKeyID;
- (id)initWithIdentifier:(id)theIdentifier keyCombo:(SGKeyCombo *)theCombo;
- (id)initWithIdentifier:(id)theIdentifier keyCombo:(SGKeyCombo *)theCombo target:(id)theTarget action:(SEL)theAction;
- (BOOL)matchesHotKeyID:(EventHotKeyID)theKeyID;
- (void)invoke;
@end
Jump to Line
Something went wrong with that request. Please try again.