Changeset 61 for trunk/Cocoa/Pester/Source/PSAlarm.m
- Timestamp:
- 01/06/03 13:05:29 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarm.m
r53 r61 10 10 #import "PSAlert.h" 11 11 #import "PSAlerts.h" 12 #import "PSTimer.h" 12 13 #import "NJRDateFormatter.h" 13 14 #import "NSCalendarDate-NJRExtensions.h" … … 143 144 } 144 145 145 - (void)_timerExpired:( NSTimer *)aTimer;146 - (void)_timerExpired:(PSTimer *)aTimer; 146 147 { 147 148 NSLog(@"expired: %@; now %@", [[aTimer fireDate] description], [[NSDate date] description]); … … 198 199 NSAssert(alarmType == PSAlarmExpired, @"CanÕt snooze an alarm that hasnÕt expired"); 199 200 alarmType = PSAlarmSnooze; 201 } 202 203 - (void)setWakeUp:(BOOL)doWake; 204 { 205 [timer setWakeUp: doWake]; 200 206 } 201 207 … … 379 385 return NO; 380 386 } 381 timer = [ NSTimer scheduledTimerWithTimeInterval: (alarmType == PSAlarmSnooze ? snoozeInterval : alarmInterval) target: self selector: @selector(_timerExpired:) userInfo: nil repeats: NO];387 timer = [PSTimer scheduledTimerWithTimeInterval: (alarmType == PSAlarmSnooze ? snoozeInterval : alarmInterval) target: self selector: @selector(_timerExpired:) userInfo: nil repeats: NO]; 382 388 if (timer == nil) return NO; 383 389 [timer retain]; 384 390 alarmType = PSAlarmSet; 391 [alerts prepareForAlarm: self]; 392 385 393 [[NSNotificationCenter defaultCenter] postNotificationName: PSAlarmTimerSetNotification object: self]; 386 394 // NSLog(@"set: %@; now %@; remaining %@", [[timer fireDate] description], [[NSDate date] description], [self timeRemainingString]);
Note:
See TracChangeset
for help on using the changeset viewer.