Last change
on this file since 502 was 53, checked in by Nicholas Riley, 22 years ago |
Updated for Pester 1.1a5 (very limited release).
Pester 1.1a4 was never released.
|
File size:
900 bytes
|
Line | |
---|
1 | //
|
---|
2 | // PSNotifierAlert.m
|
---|
3 | // Pester
|
---|
4 | //
|
---|
5 | // Created by Nicholas Riley on Sat Oct 26 2002.
|
---|
6 | // Copyright (c) 2002 Nicholas Riley. All rights reserved.
|
---|
7 | //
|
---|
8 |
|
---|
9 | #import "PSNotifierAlert.h"
|
---|
10 | #import "PSAlarmNotifierController.h"
|
---|
11 |
|
---|
12 | static PSNotifierAlert *PSNotifierAlertShared;
|
---|
13 |
|
---|
14 | @implementation PSNotifierAlert
|
---|
15 |
|
---|
16 | + (PSAlert *)alert;
|
---|
17 | {
|
---|
18 | if (PSNotifierAlertShared == nil)
|
---|
19 | PSNotifierAlertShared = [[PSNotifierAlert alloc] init];
|
---|
20 | return PSNotifierAlertShared;
|
---|
21 | }
|
---|
22 |
|
---|
23 | - (void)triggerForAlarm:(PSAlarm *)alarm;
|
---|
24 | {
|
---|
25 | [[PSAlarmNotifierController alloc] initWithAlarm: alarm];
|
---|
26 | }
|
---|
27 |
|
---|
28 | - (BOOL)requiresPesterFrontmost;
|
---|
29 | {
|
---|
30 | return YES;
|
---|
31 | }
|
---|
32 |
|
---|
33 | - (NSAttributedString *)actionDescription;
|
---|
34 | {
|
---|
35 | return [@"Display message and time" small];
|
---|
36 | }
|
---|
37 |
|
---|
38 | #pragma mark property list serialization (Pester 1.1)
|
---|
39 |
|
---|
40 | - (id)initWithPropertyList:(NSDictionary *)dict;
|
---|
41 | {
|
---|
42 | [self release];
|
---|
43 | return [[PSNotifierAlert alert] retain];
|
---|
44 | }
|
---|
45 |
|
---|
46 | @end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.