Changeset 2123
- Timestamp:
- Jun 17, 2007, 6:17:43 AM (15 years ago)
- Location:
- branches/file_selection/macosx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/file_selection/macosx/CreatorWindowController.m
r2120 r2123 32 32 + (NSString *) chooseFile; 33 33 - (void) locationSheetClosed: (NSSavePanel *) openPanel returnCode: (int) code contextInfo: (void *) info; 34 - (void) checkProgress : (NSTimer *) timer;34 - (void) checkProgress; 35 35 - (void) failureSheetClosed: (NSAlert *) alert returnCode: (int) code contextInfo: (void *) info; 36 36 … … 176 176 [fPrivateCheck state] == NSOnState); 177 177 178 fTimer = [NSTimer scheduledTimerWithTimeInterval: 0.1 target: self selector: @selector(checkProgress :)178 fTimer = [NSTimer scheduledTimerWithTimeInterval: 0.1 target: self selector: @selector(checkProgress) 179 179 userInfo: nil repeats: YES]; 180 180 [fTimer fire]; … … 230 230 } 231 231 232 - (void) checkProgress : (NSTimer *) timer232 - (void) checkProgress 233 233 { 234 234 if (fInfo->isDone) 235 235 { 236 [ timer invalidate];237 timer = nil;236 [fTimer invalidate]; 237 fTimer = nil; 238 238 239 239 if ([[self window] attachedSheet]) … … 243 243 } 244 244 245 if (fInfo->failed && !fInfo->abortFlag) 246 { 247 NSAlert * alert = [[[NSAlert alloc] init] autorelease]; 248 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Create torrent -> failed -> button")]; 249 [alert setMessageText: [NSString stringWithFormat: NSLocalizedString(@"Creation of \"%@\" failed.", 250 "Create torrent -> failed -> title"), [fLocation lastPathComponent]]]; 251 [alert setInformativeText: NSLocalizedString(@"There was an error parsing the data file. " 252 "The torrent file was not created.", "Create torrent -> failed -> warning")]; 253 [alert setAlertStyle: NSWarningAlertStyle]; 254 255 [alert beginSheetModalForWindow: [self window] modalDelegate: self 256 didEndSelector: @selector(failureSheetClosed:returnCode:contextInfo:) contextInfo: nil]; 257 return; 258 } 259 260 #warning add to T 245 if (fInfo->failed) 246 { 247 if (!fInfo->abortFlag) 248 { 249 NSAlert * alert = [[[NSAlert alloc] init] autorelease]; 250 [alert addButtonWithTitle: NSLocalizedString(@"OK", "Create torrent -> failed -> button")]; 251 [alert setMessageText: [NSString stringWithFormat: NSLocalizedString(@"Creation of \"%@\" failed.", 252 "Create torrent -> failed -> title"), [fLocation lastPathComponent]]]; 253 [alert setInformativeText: NSLocalizedString(@"There was an error parsing the data file. " 254 "The torrent file was not created.", "Create torrent -> failed -> warning")]; 255 [alert setAlertStyle: NSWarningAlertStyle]; 256 257 [alert beginSheetModalForWindow: [self window] modalDelegate: self 258 didEndSelector: @selector(failureSheetClosed:returnCode:contextInfo:) contextInfo: nil]; 259 return; 260 } 261 } 262 else 263 { 264 #warning add to T 265 } 261 266 262 267 [[self window] close]; -
branches/file_selection/macosx/English.lproj/Creator.nib/info.nib
r2108 r2123 9 9 <key>IBOpenObjects</key> 10 10 <array> 11 <integer>5</integer> 11 12 <integer>45</integer> 12 <integer>5</integer>13 13 </array> 14 14 <key>IBSystem Version</key> -
branches/file_selection/macosx/StringAdditions.m
r1863 r2123 48 48 return [NSString stringWithFormat: NSLocalizedString(@"%lld bytes", "File size"), size]; 49 49 50 float convertedSize = (float) 50 float convertedSize = (float)size; 51 51 NSString * unit; 52 52 if (size < 1048576)
Note: See TracChangeset
for help on using the changeset viewer.