Last change
on this file since 283 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:
581 bytes
|
Line | |
---|
1 | //
|
---|
2 | // NJRHotKeyField.h
|
---|
3 | // Pester
|
---|
4 | //
|
---|
5 | // Created by Nicholas Riley on Sat Mar 29 2003.
|
---|
6 | // Copyright (c) 2003 Nicholas Riley. All rights reserved.
|
---|
7 | //
|
---|
8 |
|
---|
9 | #import <AppKit/AppKit.h>
|
---|
10 |
|
---|
11 | @class NJRHotKey;
|
---|
12 |
|
---|
13 | @interface NJRHotKeyField : NSTextField {
|
---|
14 | NJRHotKey *hotKey;
|
---|
15 | }
|
---|
16 |
|
---|
17 | - (NJRHotKey *)hotKey;
|
---|
18 | - (void)setHotKey:(NJRHotKey *)aKey;
|
---|
19 |
|
---|
20 | - (IBAction)clear:(id)sender;
|
---|
21 |
|
---|
22 | @end
|
---|
23 |
|
---|
24 | @interface NSObject (NJRHotKeyFieldDelegate)
|
---|
25 |
|
---|
26 | - (BOOL)hotKeyField:(NJRHotKeyField *)hotKeyField shouldAcceptCharacter:(unichar)keyChar modifierFlags:(unsigned)modifierFlags rejectionMessage:(NSString **)message;
|
---|
27 |
|
---|
28 | @end |
---|
Note:
See
TracBrowser
for help on using the repository browser.