Changeset 26 for trunk/Cocoa/Pester/Source/PSAlarmNotifierController.m
- Timestamp:
- 10/20/02 06:35:16 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarmNotifierController.m
r24 r26 12 12 @implementation PSAlarmNotifierController 13 13 14 - (id)initWithTimer:(NSTimer *)timer; 14 // XXX should use NSNonactivatingPanelMask on 10.2 15 16 + (PSAlarmNotifierController *)controllerWithTimerExpiredNotification:(NSNotification *)notification; 17 { 18 return [[self alloc] initWithAlarm: [notification object]]; 19 } 20 21 - (id)initWithAlarm:(PSAlarm *)alarm; 15 22 { 16 23 if ([self initWithWindowNibName: @"Notifier"]) { 17 PSAlarm *alarm = [timer userInfo];18 19 24 [[self window] center]; 20 25 [messageField setStringValue: [alarm message]]; 21 [dateField setObjectValue: [ timer fireDate]];26 [dateField setObjectValue: [alarm date]]; 22 27 [NSApp activateIgnoringOtherApps: YES]; 23 28 [[self window] makeKeyAndOrderFront: nil];
Note:
See TracChangeset
for help on using the changeset viewer.