Changeset 5926
- Timestamp:
- May 23, 2008, 10:58:17 PM (14 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/FileListNode.m
r5910 r5926 57 57 - (void) insertChild: (FileListNode *) child 58 58 { 59 NSAssert(fIsFolder, @"method can only be invoked on f iles");59 NSAssert(fIsFolder, @"method can only be invoked on folders"); 60 60 61 61 [fChildren addObject: child]; … … 64 64 - (void) insertIndex: (NSUInteger) index withSize: (uint64_t) size 65 65 { 66 NSAssert(fIsFolder, @"method can only be invoked on f iles");66 NSAssert(fIsFolder, @"method can only be invoked on folders"); 67 67 68 68 [fIndexes addIndex: index]; -
trunk/macosx/StatsWindowController.m
r5915 r5926 194 194 [NSString timeString: statsAll.secondsActive showSeconds: NO]]]; 195 195 196 switch (statsAll.sessionCount) 197 { 198 case 1: 199 [fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")]; 200 break; 201 case 0: //for users that have this problem 202 [fNumOpenedField setStringValue: NSLocalizedString(@"N/A", "stats window -> times opened")]; 203 break; 204 default: 205 [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d times", "stats window -> times opened"), 206 statsAll.sessionCount]]; 207 } 196 if (statsAll.sessionCount == 1) 197 [fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")]; 198 else 199 [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%u times", "stats window -> times opened"), 200 statsAll.sessionCount]]; 208 201 } 209 202
Note: See TracChangeset
for help on using the changeset viewer.