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/PSApplication.m

    r129 r131  
    1616#import "PSAlarms.h"
    1717#import "PSTimer.h"
     18#import "NJRHotKey.h"
     19
     20#import <Carbon/Carbon.h>
    1821
    1922@implementation PSApplication
     
    2730    [PSAlarms setUp];
    2831    [self setDelegate: self];
     32    [PSPreferencesController readPreferences];
    2933    [super finishLaunching];
    3034}
     35
     36#pragma mark actions
    3137
    3238- (IBAction)showHelp:(id)sender;
     
    5561}
    5662
    57 #pragma mark preferences
    58 
    5963- (IBAction)orderFrontPreferencesPanel:(id)sender;
    6064{
     
    6468    [preferencesController showWindow: self];
    6569}
     70
     71#pragma mark update timer
    6672
    6773- (void)_resetUpdateTimer;
     
    108114        textOrigin = NSMakePoint(imageSize.width / 2 - textSize.width / 2,
    109115                                 imageSize.height / 2 - textSize.height / 2);
    110         frameRect = NSInsetRect(NSMakeRect(textOrigin.x, textOrigin.y, textSize.width, textSize.height),
    111                                 -4, -2);
     116        frameRect = NSInsetRect(NSMakeRect(textOrigin.x, textOrigin.y, textSize.width, textSize.height), -4, -2);
    112117       
    113118        [tile lockFocus];
Note: See TracChangeset for help on using the changeset viewer.