source: releases/Pester/1.1a3/Source/PSDockBounceAlert.m@ 200

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

PSDockBounceAlert: Make it work, assuming the app doesn't get brought
forward immediately upon the alarm activation.

NJRQTMediaPopUpButton: Fixed drag and drop. Added _descriptionForDraggingInfo:
to

PSMovieAlertController: Fixed movie vertical size, looks like a bug
got enshrined in the documentation.

PSAlarmAlertController: Don't force app to front until alerts are ready.

File size: 817 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)stopBouncing;
24{
25 [NSApp cancelUserAttentionRequest: NSInformationalRequest];
26}
27
28- (void)triggerForAlarm:(PSAlarm *)alarm;
29{
30 [NSApp requestUserAttention: NSInformationalRequest];
31 [[self class] performSelector: @selector(stopBouncing) withObject: nil afterDelay: 1 inModes: [NSArray arrayWithObject: NSDefaultRunLoopMode]];
32}
33
34@end
Note: See TracBrowser for help on using the repository browser.