Rev | Line | |
---|
[157] | 1 | //
|
---|
| 2 | // NJRHotKey.h
|
---|
| 3 | // Pester
|
---|
| 4 | //
|
---|
| 5 | // Created by Nicholas Riley on Tue Apr 01 2003.
|
---|
| 6 | // Copyright (c) 2003 Nicholas Riley. All rights reserved.
|
---|
| 7 | //
|
---|
| 8 |
|
---|
| 9 | #import <Foundation/Foundation.h>
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | @interface NJRHotKey : NSObject {
|
---|
| 13 | NSString *hotKeyCharacters;
|
---|
| 14 | unsigned hotKeyModifierFlags;
|
---|
| 15 | unsigned short hotKeyCode;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | + (NJRHotKey *)hotKeyWithCharacters:(NSString *)characters modifierFlags:(unsigned)modifierFlags keyCode:(unsigned short)keyCode;
|
---|
| 19 |
|
---|
| 20 | - (id)initWithCharacters:(NSString *)characters modifierFlags:(unsigned)modifierFlags keyCode:(unsigned short)keyCode;
|
---|
| 21 |
|
---|
| 22 | - (NSString *)characters;
|
---|
| 23 | - (unsigned)modifierFlags; // Cocoa
|
---|
| 24 | - (long)modifiers; // Carbon
|
---|
| 25 | - (unsigned short)keyCode;
|
---|
| 26 |
|
---|
| 27 | - (NSDictionary *)propertyListRepresentation;
|
---|
| 28 | - (id)initWithPropertyList:(NSDictionary *)dict;
|
---|
| 29 |
|
---|
| 30 | @end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.