01/06/03 13:05:29 (19 years ago)
Nicholas Riley

Pester 1.1b1.

PSPowerManager: Fixed delegate method selectors to better reflect what
is going on (Apple's docs in IOKit Fundamentals help with this; the
kIOMessage*Sleep constants are really poorly named).

VERSION: Updated for 1.1b1.

PSSpeechAlert.h: Fixed company name.

PSAlert.[hm]: Added -prepareForAlarm: to support PSWakeAlert.

PSTimer.[hm]: Replacement for NSTimer that works properly across
sleep/wake cycles and will schedule wake timers.

PSAlerts.[hm]: Added -prepareForAlarm: to support PSWakeAlert.

Read Me.rtfd: Updated for 1.1b1.

PSAlarm.[hm]: Added -setWakeUp:, invoke -[PSAlerts prepareForAlarm],
replaced alarm timer NSTimer with PSTimer.

PSApplication.[hm]: Replaced dock update timer NSTimer with PSTimer.
Uncovered some issues, need to fix later. Enable alarm discard for
beta release.

PSWakeAlert.[hm]: Shared alert implementation for wakeup. Doesn't do
anything at trigger time, but uses new preparation interface to work
at alarm set time (should work for repeating alarms too, but I didn't
bother to test...)

PSAlarmSetController.m: Added support for PSWakeAlert. Save default
alert information on quit. Removed debug statements on hide/unhide;
it works fine regardless of whether the app is explicitly hidden or
the window hides itself.

PSAlarms.m: PSTimer support - invoke +[PSTimer setUp] to initialize
timer list.

1 edited


  • trunk/Cocoa/Pester/Source/PSAlarms.m

    r60 r61  
    99#import "PSAlarms.h"
    1010#import "PSAlarm.h"
     11#import "PSTimer.h"
    1112#import "NSDictionary-NJRExtensions.h"
    4445        }
    4546        [PSAlarmsAllAlarms _updateNextAlarm]; // only generate notifications after singleton established
     47        [PSTimer setUp];
    4648    }
    7173    PSAlarm *alarm = [notification object];
    72     NSLog(@"timer expired: %@ retainCount %d", alarm, [alarm retainCount]);
     74    // NSLog(@"timer expired: %@ retainCount %d", alarm, [alarm retainCount]);
    7375    [expiredAlarms addObject: alarm];
    74     NSLog(@"expired alarms: %@", [expiredAlarms description]);
     76    // NSLog(@"expired alarms: %@", [expiredAlarms description]);
    7577    [alarms removeObject: alarm];
    7678    [self _changed];
    8183    PSAlarm *alarm = [notification object];
    82     NSLog(@"timer set: %@ retainCount %d", alarm, [alarm retainCount]);
     84    // NSLog(@"timer set: %@ retainCount %d", alarm, [alarm retainCount]);
    8385    [alarms addObject: alarm];
    8486    [expiredAlarms removeObject: alarm];
    9092    PSAlarm *alarm = [notification object];
    91     NSLog(@"alarm died: %@ retainCount %d", alarm, [alarm retainCount]);
     93    // NSLog(@"alarm died: %@ retainCount %d", alarm, [alarm retainCount]);
    9294    [alarms removeObject: alarm];
    9395    [expiredAlarms removeObject: alarm];
Note: See TracChangeset for help on using the changeset viewer.