Ignore:
Timestamp:
10/29/02 22:20:58 (20 years ago)
Author:
Nicholas Riley
Message:

Changes for Pester 1.1d1.

File:
1 edited

Legend:

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

    r28 r34  
    88
    99#import "PSAlarmNotifierController.h"
     10#import "PSAlarmAlertController.h"
    1011#import "PSAlarm.h"
    1112
     
    1314
    1415// XXX should use NSNonactivatingPanelMask on 10.2
    15 
    16 + (PSAlarmNotifierController *)controllerWithTimerExpiredNotification:(NSNotification *)notification;
    17 {
    18     return [[self alloc] initWithAlarm: [notification object]];
    19 }
    2016
    2117- (id)initWithAlarm:(PSAlarm *)alarm;
     
    2521        [messageField setStringValue: [alarm message]];
    2622        [dateField setObjectValue: [alarm date]];
    27         [NSApp requestUserAttention: NSInformationalRequest];
    28         [NSApp activateIgnoringOtherApps: YES];
    2923        [[self window] makeKeyAndOrderFront: nil];
    3024        [[self window] orderFrontRegardless];
    31         [NSApp cancelUserAttentionRequest: NSInformationalRequest];
    32         NSBeep();
    3325    }
    3426    return self;
     
    3729- (IBAction)close:(id)sender;
    3830{
     31    [PSAlarmAlertController stopAlerts: sender];
    3932    [self close];
    4033}
Note: See TracChangeset for help on using the changeset viewer.