source: trunk/Cocoa/Pester/Source/PSDockBounceAlert.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: 686 bytes
Line 
1//
2// PSDockBounceAlert.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 <AppKit/AppKit.h>
10#import "PSDockBounceAlert.h"
11
12static PSDockBounceAlert *PSDockBounceAlertShared;
13
14@implementation PSDockBounceAlert
15
16+ (PSAlert *)alert;
17{
18 if (PSDockBounceAlertShared == nil)
19 PSDockBounceAlertShared = [[PSDockBounceAlert alloc] init];
20 return PSDockBounceAlertShared;
21}
22
23- (void)triggerForAlarm:(PSAlarm *)alarm;
24{
25 [NSApp requestUserAttention: NSInformationalRequest];
26 [NSApp activateIgnoringOtherApps: YES];
27 [NSApp cancelUserAttentionRequest: NSInformationalRequest];
28}
29
30@end
Note: See TracBrowser for help on using the repository browser.