Changeset 602 for trunk/Cocoa/Pester/Source/PSAlarm.m
- Timestamp:
- 12/21/09 22:12:37 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarm.m
r587 r602 171 171 } 172 172 173 - (void)setForDate:(NSDate *) date atTime:(NSDate *)time;173 - (void)setForDate:(NSDate *)aDate atTime:(NSDate *)aTime; 174 174 { 175 175 NSCalendarDate *dateTime; 176 if ( time == nil && date == nil) {176 if (aTime == nil && aDate == nil) { 177 177 [self _beInvalid: @"Please specify an alarm date and time."]; return; 178 178 } 179 if ( time == nil) {179 if (aTime == nil) { 180 180 [self _beInvalid: @"Please specify an alarm time."]; return; 181 181 } 182 if ( date == nil) {182 if (aDate == nil) { 183 183 [self _beInvalid: @"Please specify an alarm date."]; return; 184 184 } 185 185 // XXX if calTime's date is different from the default date, complain 186 dateTime = [NSCalendarDate dateWithDate: date atTime: time];186 dateTime = [NSCalendarDate dateWithDate: aDate atTime: aTime]; 187 187 if (dateTime == nil) { 188 188 [self _beInvalid: @"Please specify a reasonable date and time."]; return;
Note:
See TracChangeset
for help on using the changeset viewer.