more love for users having problem with the torrent file UTI

This commit is contained in:
Mitchell Livingston
2009-06-11 23:02:54 +00:00
parent 4c60377168
commit 52454105b2
2 changed files with 3 additions and 3 deletions

View File

@@ -947,7 +947,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[panel setCanChooseFiles: YES];
[panel setCanChooseDirectories: NO];
[panel beginSheetForDirectory: nil file: nil types: [NSArray arrayWithObject: @"org.bittorrent.torrent"]
[panel beginSheetForDirectory: nil file: nil types: [NSArray arrayWithObjects: @"org.bittorrent.torrent", @"torrent", nil]
modalForWindow: fWindow modalDelegate: self didEndSelector: @selector(openSheetClosed:returnCode:contextInfo:)
contextInfo: [NSNumber numberWithBool: sender == fOpenIgnoreDownloadFolder]];
}
@@ -1369,7 +1369,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
else
{
NSSavePanel * panel = [NSSavePanel savePanel];
[panel setRequiredFileType: @"org.bittorrent.torrent"];
[panel setAllowedFileTypes: [NSArray arrayWithObjects: @"org.bittorrent.torrent", @"torrent", nil]];
[panel setCanSelectHiddenExtension: YES];
[panel beginSheetForDirectory: nil file: [torrent name] modalForWindow: fWindow modalDelegate: self