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