Last change
on this file since 306 was 131, checked in by Nicholas Riley, 22 years ago |
PSPreferencesController.[hm]: Added support for registering hot keys;
not the most elegant thing in the world, but much better than it was
in the prototype. Triggered by +readPreferences.
NJRHotKeyField.[hm]: Replaced model components (wow, was that ever
dumb) by NJRHotKey reference, eliminating cumbersome archiving model.
Added accessors for hot key.
NJRHotKeyManager.[hm]: Ported Quentin Carnicelli's HotKeyCenter code
to use NJRHotKey, cleaned up, and removed reverse-engineered pre-10.2
support.
NJRHotKey.[hm]: New. Provides Cocoa-centric storage for
three-component hot keys, mapping from Cocoa to Carbon modifiers.
PSApplication.m: Reorganized. Added invocation of
+[PSPreferencesController readPreferences].
Fixes bug 29.
|
File size:
814 bytes
|
Line | |
---|
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 | - (NSString *)keyGlyphs;
|
---|
31 |
|
---|
32 | @end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.