Changeset 389 for trunk/macosx/Controller.m
- Timestamp:
- Jun 18, 2006, 3:40:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r388 r389 41 41 #define TOOLBAR_RESUME_SELECTED @"Toolbar Resume Selected" 42 42 43 #define WEBSITE_URL @"http://transmission.m0k.org/" 44 #define FORUM_URL @"http://transmission.m0k.org/forum/" 45 #define VERSION_PLIST_URL @"http://transmission.m0k.org/version.plist" 43 #define WEBSITE_URL @"http://transmission.m0k.org/" 44 #define FORUM_URL @"http://transmission.m0k.org/forum/" 46 45 47 46 #define GROWL_PATH @"/Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app" … … 265 264 ? @"There is an active transfer. Do you really want to quit?" 266 265 : [NSString stringWithFormat: 267 @"There are %d active transfers. Do you really want to quit?", 268 active]; 266 @"There are %d active transfers. Do you really want to quit?", active]; 269 267 270 268 NSBeginAlertSheet(@"Confirm Quit", … … 347 345 BOOL autoStart = [fDefaults boolForKey: @"AutoStartDownload"]; 348 346 349 NSString * downloadChoice = [fDefaults stringForKey: @"DownloadChoice"], 350 * torrentPath; 347 NSString * downloadChoice = [fDefaults stringForKey: @"DownloadChoice"], * torrentPath; 351 348 Torrent * torrent; 352 349 NSEnumerator * enumerator = [filenames objectEnumerator]; … … 381 378 { 382 379 NSString * folder = [downloadChoice isEqualToString: @"Constant"] 383 ? [[fDefaults stringForKey: @"DownloadFolder"] 384 stringByExpandingTildeInPath] 385 : [torrentPath stringByDeletingLastPathComponent]; 380 ? [[fDefaults stringForKey: @"DownloadFolder"] stringByExpandingTildeInPath] 381 : [torrentPath stringByDeletingLastPathComponent]; 386 382 387 383 [torrent setDownloadFolder: folder]; … … 571 567 } 572 568 else 573 { 574 [self confirmRemove: torrents 575 deleteData: deleteData deleteTorrent: deleteTorrent]; 576 } 569 [self confirmRemove: torrents deleteData: deleteData deleteTorrent: deleteTorrent]; 577 570 } 578 571 … … 588 581 589 582 if (returnCode == NSAlertDefaultReturn) 590 { 591 [self confirmRemove: torrents 592 deleteData: deleteData deleteTorrent: deleteTorrent]; 593 } 583 [self confirmRemove: torrents deleteData: deleteData deleteTorrent: deleteTorrent]; 594 584 else 595 585 [torrents release]; … … 1414 1404 { 1415 1405 NSRect windowRect = [fWindow frame]; 1416 int count = [fTorrents count];1417 1406 float newHeight = windowRect.size.height - [fScrollView frame].size.height 1418 + count* ([fTableView rowHeight] + [fTableView intercellSpacing].height) + 30.0;1407 + [fTorrents count] * ([fTableView rowHeight] + [fTableView intercellSpacing].height) + 30.0; 1419 1408 1420 1409 float minHeight = [fWindow minSize].height;
Note: See TracChangeset
for help on using the changeset viewer.