Changeset 551
- Timestamp:
- 07/18/09 05:59:22 (15 years ago)
- Location:
- trunk/Cocoa/Pester
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/English.lproj/MainMenu.nib/classes.nib
r545 r551 17 17 <key>SUPERCLASS</key> 18 18 <string>NSPopUpButton</string> 19 </dict> 20 <dict> 21 <key>CLASS</key> 22 <string>NSDisclosureButtonCell</string> 23 <key>LANGUAGE</key> 24 <string>ObjC</string> 25 <key>SUPERCLASS</key> 26 <string>NSButtonCell</string> 19 27 </dict> 20 28 <dict> … … 119 127 </dict> 120 128 <dict> 121 <key>CLASS</key>122 <string>NSDisclosureButtonCell</string>123 <key>LANGUAGE</key>124 <string>ObjC</string>125 <key>SUPERCLASS</key>126 <string>NSButtonCell</string>127 </dict>128 <dict>129 129 <key>ACTIONS</key> 130 130 <dict> -
trunk/Cocoa/Pester/Source/English.lproj/MainMenu.nib/info.nib
r533 r551 11 11 <key>IBOpenObjects</key> 12 12 <array> 13 <integer> 507</integer>13 <integer>2</integer> 14 14 </array> 15 15 <key>IBSystem Version</key> -
trunk/Cocoa/Pester/Source/PSAlarm.m
r366 r551 328 328 - (NSString *)intervalString; 329 329 { 330 const unsigned long long mval = 99 , minute = 60, hour = minute * 60;330 const unsigned long long mval = 999, minute = 60, hour = minute * 60, day = hour * 24, week = day * 7; 331 331 unsigned long long interval = [self interval]; 332 332 if (interval == 0) return nil; 333 333 334 if (interval == 1) return @"One second"; 334 335 if (interval == minute) return @"One minute"; 336 if (interval == hour) return @"One hour"; 337 if (interval == day) return @"One day"; 338 if (interval == week) return @"One week"; 339 340 if (interval % week == 0) return [NSString stringWithFormat: @"%u weeks", (unsigned)(interval / week)]; 341 if (interval % day == 0) return [NSString stringWithFormat: @"%u days", (unsigned)(interval / day)]; 342 if (interval % hour == 0) return [NSString stringWithFormat: @"%u hours", (unsigned)(interval / hour)]; 335 343 if (interval % minute == 0) return [NSString stringWithFormat: @"%u minutes", (unsigned)(interval / minute)]; 344 336 345 if (interval <= mval) return [NSString stringWithFormat: @"%u seconds", (unsigned)interval]; 337 if (interval == hour) return @"One hour";338 if (interval % hour == 0) return [NSString stringWithFormat: @"%u hours", (unsigned)(interval / hour)];339 346 if (interval <= mval * minute) return [NSString stringWithFormat: @"%u minutes", (unsigned)(interval / minute)]; 340 347 if (interval <= mval * hour) return [NSString stringWithFormat: @"%u hours", (unsigned)(interval / hour)]; 348 if (interval <= mval * day) return [NSString stringWithFormat: @"%u days", (unsigned)(interval / day)]; 349 return [NSString stringWithFormat: @"%u weeks", (unsigned)(interval / week)]; 350 341 351 return [self _stringForInterval: interval]; 342 352 }
Note:
See TracChangeset
for help on using the changeset viewer.