Changeset 34 for trunk/Cocoa/Pester/Source/PSAlarmNotifierController.m
- Timestamp:
- 10/29/02 22:20:58 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarmNotifierController.m
r28 r34 8 8 9 9 #import "PSAlarmNotifierController.h" 10 #import "PSAlarmAlertController.h" 10 11 #import "PSAlarm.h" 11 12 … … 13 14 14 15 // XXX should use NSNonactivatingPanelMask on 10.2 15 16 + (PSAlarmNotifierController *)controllerWithTimerExpiredNotification:(NSNotification *)notification;17 {18 return [[self alloc] initWithAlarm: [notification object]];19 }20 16 21 17 - (id)initWithAlarm:(PSAlarm *)alarm; … … 25 21 [messageField setStringValue: [alarm message]]; 26 22 [dateField setObjectValue: [alarm date]]; 27 [NSApp requestUserAttention: NSInformationalRequest];28 [NSApp activateIgnoringOtherApps: YES];29 23 [[self window] makeKeyAndOrderFront: nil]; 30 24 [[self window] orderFrontRegardless]; 31 [NSApp cancelUserAttentionRequest: NSInformationalRequest];32 NSBeep();33 25 } 34 26 return self; … … 37 29 - (IBAction)close:(id)sender; 38 30 { 31 [PSAlarmAlertController stopAlerts: sender]; 39 32 [self close]; 40 33 }
Note:
See TracChangeset
for help on using the changeset viewer.