Ignore:
Timestamp:
10/20/02 06:35:16 (22 years ago)
Author:
Nicholas Riley
Message:

Pester 1.0b1

File:
1 edited

Legend:

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

    r24 r26  
    1212@implementation PSAlarmNotifierController
    1313
    14 - (id)initWithTimer:(NSTimer *)timer;
     14// XXX should use NSNonactivatingPanelMask on 10.2
     15
     16+ (PSAlarmNotifierController *)controllerWithTimerExpiredNotification:(NSNotification *)notification;
     17{
     18    return [[self alloc] initWithAlarm: [notification object]];
     19}
     20
     21- (id)initWithAlarm:(PSAlarm *)alarm;
    1522{
    1623    if ([self initWithWindowNibName: @"Notifier"]) {
    17         PSAlarm *alarm = [timer userInfo];
    18 
    1924        [[self window] center];
    2025        [messageField setStringValue: [alarm message]];
    21         [dateField setObjectValue: [timer fireDate]];
     26        [dateField setObjectValue: [alarm date]];
    2227        [NSApp activateIgnoringOtherApps: YES];
    2328        [[self window] makeKeyAndOrderFront: nil];
Note: See TracChangeset for help on using the changeset viewer.