Changeset 12943
- Timestamp:
- Oct 6, 2011, 2:16:19 AM (11 years ago)
- Location:
- trunk/macosx
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/AddMagnetWindowController.m
r12612 r12943 231 231 { 232 232 if (code == NSOKButton) 233 [self setDestinationPath: [[ openPanel filenames] objectAtIndex: 0]];233 [self setDestinationPath: [[[openPanel URLs] objectAtIndex: 0] path]]; 234 234 else 235 235 { -
trunk/macosx/AddWindowController.m
r12689 r12943 328 328 { 329 329 fLockDestination = NO; 330 [self setDestinationPath: [[ openPanel filenames] objectAtIndex: 0]];330 [self setDestinationPath: [[[openPanel URLs] objectAtIndex: 0] path]]; 331 331 } 332 332 else -
trunk/macosx/Controller.m
r12940 r12943 1446 1446 { 1447 1447 for (Torrent * torrent in torrents) 1448 [torrent moveTorrentDataFileTo: [[ panel filenames] objectAtIndex: 0]];1448 [torrent moveTorrentDataFileTo: [[[panel URLs] objectAtIndex: 0] path]]; 1449 1449 } 1450 1450 … … 1502 1502 //copy torrent to new location with name of data file 1503 1503 if (code == NSOKButton) 1504 [[torrents objectAtIndex: 0] copyTorrentFileTo: [ panel filename]];1504 [[torrents objectAtIndex: 0] copyTorrentFileTo: [[panel URL] path]]; 1505 1505 1506 1506 [torrents removeObjectAtIndex: 0]; -
trunk/macosx/CreatorWindowController.m
r12940 r12943 405 405 406 406 BOOL success = [panel runModal] == NSOKButton; 407 return success ? [[ panel filenames] objectAtIndex: 0] : nil;407 return success ? [[[panel URLs] objectAtIndex: 0] path] : nil; 408 408 } 409 409 … … 413 413 { 414 414 [fLocation release]; 415 fLocation = [[ panel filename] retain];415 fLocation = [[[panel URL] path] retain]; 416 416 417 417 [fLocationField setStringValue: [fLocation stringByAbbreviatingWithTildeInPath]]; -
trunk/macosx/GroupsPrefsController.m
r11617 r12943 222 222 if (code == NSOKButton) 223 223 { 224 NSString * path = [[ openPanel filenames] objectAtIndex: 0];224 NSString * path = [[[openPanel URLs] objectAtIndex: 0] path]; 225 225 [[GroupsController groups] setCustomDownloadLocation: path forIndex: index]; 226 226 [[GroupsController groups] setUsesCustomDownloadLocation: YES forIndex: index]; -
trunk/macosx/MessageWindowController.m
r12940 r12943 405 405 NSString * fileString = [messageStrings componentsJoinedByString: @"\n"]; 406 406 407 if (![fileString writeToFile: [ panel filename] atomically: YES encoding: NSUTF8StringEncoding error: nil])407 if (![fileString writeToFile: [[panel URL] path] atomically: YES encoding: NSUTF8StringEncoding error: nil]) 408 408 { 409 409 NSAlert * alert = [[NSAlert alloc] init]; … … 412 412 [alert setInformativeText: [NSString stringWithFormat: 413 413 NSLocalizedString(@"There was a problem creating the file \"%@\".", 414 "Save log alert panel -> message"), [[ panel filename] lastPathComponent]]];414 "Save log alert panel -> message"), [[[panel URL] path] lastPathComponent]]]; 415 415 [alert setAlertStyle: NSWarningAlertStyle]; 416 416 -
trunk/macosx/PrefsController.m
r12940 r12943 1388 1388 [fFolderPopUp selectItemAtIndex: DOWNLOAD_FOLDER]; 1389 1389 1390 NSString * folder = [[ openPanel filenames] objectAtIndex: 0];1390 NSString * folder = [[[openPanel URLs] objectAtIndex: 0] path]; 1391 1391 [fDefaults setObject: folder forKey: @"DownloadFolder"]; 1392 1392 [fDefaults setObject: @"Constant" forKey: @"DownloadChoice"]; … … 1405 1405 if (code == NSOKButton) 1406 1406 { 1407 NSString * folder = [[ openPanel filenames] objectAtIndex: 0];1407 NSString * folder = [[[openPanel URLs] objectAtIndex: 0] path]; 1408 1408 [fDefaults setObject: folder forKey: @"IncompleteDownloadFolder"]; 1409 1409 … … 1422 1422 [sharedQueue removePathFromQueue: [path stringByExpandingTildeInPath]]; 1423 1423 1424 path = [[ openPanel filenames] objectAtIndex: 0];1424 path = [[[openPanel URLs] objectAtIndex: 0] path]; 1425 1425 [fDefaults setObject: path forKey: @"AutoImportDirectory"]; 1426 1426 [sharedQueue addPath: [path stringByExpandingTildeInPath]]; … … 1438 1438 if (code == NSOKButton) 1439 1439 { 1440 NSString * filePath = [[ openPanel filenames] objectAtIndex: 0];1440 NSString * filePath = [[[openPanel URLs] objectAtIndex: 0] path]; 1441 1441 1442 1442 if ([[NSFileManager defaultManager] fileExistsAtPath: filePath]) // script file exists
Note: See TracChangeset
for help on using the changeset viewer.