source: releases/Pester/1.0d2/Source/PSAlarmNotifierController.m@ 632

Last change on this file since 632 was 24, checked in by Nicholas Riley, 22 years ago

Pester 1.0d2

File size: 791 bytes
Line 
1//
2// PSAlarmNotifierController.m
3// Pester
4//
5// Created by Nicholas Riley on Tue Oct 08 2002.
6// Copyright (c) 2002 Nicholas Riley. All rights reserved.
7//
8
9#import "PSAlarmNotifierController.h"
10#import "PSAlarm.h"
11
12@implementation PSAlarmNotifierController
13
14- (id)initWithTimer:(NSTimer *)timer;
15{
16 if ([self initWithWindowNibName: @"Notifier"]) {
17 PSAlarm *alarm = [timer userInfo];
18
19 [[self window] center];
20 [messageField setStringValue: [alarm message]];
21 [dateField setObjectValue: [timer fireDate]];
22 [NSApp activateIgnoringOtherApps: YES];
23 [[self window] makeKeyAndOrderFront: nil];
24 [[self window] orderFrontRegardless];
25 NSBeep();
26 }
27 return self;
28}
29
30- (IBAction)close:(id)sender;
31{
32 [self close];
33}
34
35@end
Note: See TracBrowser for help on using the repository browser.