source: trunk/Cocoa/Pester/Source/PSAlarmNotifierController.m@ 34

Last change on this file since 34 was 34, checked in by Nicholas Riley, 20 years ago

Changes for Pester 1.1d1.

File size: 813 bytes
RevLine 
[21]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"
[34]10#import "PSAlarmAlertController.h"
[24]11#import "PSAlarm.h"
[21]12
13@implementation PSAlarmNotifierController
14
[26]15// XXX should use NSNonactivatingPanelMask on 10.2
16
17- (id)initWithAlarm:(PSAlarm *)alarm;
18{
[21]19 if ([self initWithWindowNibName: @"Notifier"]) {
20 [[self window] center];
[24]21 [messageField setStringValue: [alarm message]];
[26]22 [dateField setObjectValue: [alarm date]];
[21]23 [[self window] makeKeyAndOrderFront: nil];
24 [[self window] orderFrontRegardless];
25 }
26 return self;
27}
28
29- (IBAction)close:(id)sender;
30{
[34]31 [PSAlarmAlertController stopAlerts: sender];
[21]32 [self close];
33}
34
35@end
Note: See TracBrowser for help on using the repository browser.