Ignore:
Timestamp:
04/01/03 21:25:02 (21 years ago)
Author:
Nicholas Riley
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/NJRHotKeyField.h

    r130 r131  
    99#import <AppKit/AppKit.h>
    1010
     11@class NJRHotKey;
    1112
    1213@interface NJRHotKeyField : NSTextField {
    13     NSString *hotKeyCharacters;
    14     unsigned hotKeyModifierFlags;
    15     unsigned short hotKeyCode;
     14    NJRHotKey *hotKey;
    1615}
    1716
     17- (NJRHotKey *)hotKey;
     18- (void)setHotKey:(NJRHotKey *)aKey;
     19
    1820- (IBAction)clear:(id)sender;
    19 
    20 - (NSDictionary *)propertyListRepresentation;
    21 - (void)setFromPropertyList:(NSDictionary *)dict;
    2221
    2322@end
Note: See TracChangeset for help on using the changeset viewer.