Ignore:
Timestamp:
03/31/03 16:47:12 (21 years ago)
Author:
Nicholas Riley
Message:

PSPreferencesController.[hm]: Manage preferences window, just like in
HostLauncher (and DockCam, I guess, though I didn't check.)

NJRHotKeyField.[hm], NJRHotKeyFieldCell.[hm]: Implements a NSTextField
subclass which intercepts every keyboard event it can, and turns it
into a human-readable representation. Don't ask me how many hours of
work this was.

English.lproj/MainMenu.nib: Hook up Preferences menu item.

English.lproj/Preferences.nib: Simple Preferences panel. One
NJRHotKeyField, one button, a couple of static text fields.

NSString-NJRExtensions.[hm]: Added method from HostLauncher (modified
to output attributed string, as it's needed in order to get the right
mix of fonts), -keyEquivalentAttributedStringWithModifierMask:.
Greatly broadened the number of keys which this method can process to
pretty much the entire extended keyboard.

NSFont-NJRExtensions.[hm]: Provide a class method for obtaining a
theme font as a NSFont.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/PSApplication.m

    r103 r129  
    1111#import "PSAlarmAlertController.h"
    1212#import "PSAlarmsController.h"
     13#import "PSPreferencesController.h"
    1314#import "NJRReadMeController.h"
    1415#import "PSAlarm.h"
     
    5253    }
    5354    [alarmsController showWindow: self];
     55}
     56
     57#pragma mark preferences
     58
     59- (IBAction)orderFrontPreferencesPanel:(id)sender;
     60{
     61    if (!preferencesController)  {
     62        preferencesController = [[PSPreferencesController alloc] init];
     63    }
     64    [preferencesController showWindow: self];
    5465}
    5566
Note: See TracChangeset for help on using the changeset viewer.