Revision: 2647 http://skim-app.svn.sourceforge.net/skim-app/?rev=2647&view=rev Author: hofman Date: 2007-08-13 11:17:20 -0700 (Mon, 13 Aug 2007)
Log Message: ----------- Set filename of downloaded files to just the file name, as the temporary file is deleted. Modified Paths: -------------- trunk/SKDownloadController.m Modified: trunk/SKDownloadController.m =================================================================== --- trunk/SKDownloadController.m 2007-08-13 18:16:35 UTC (rev 2646) +++ trunk/SKDownloadController.m 2007-08-13 18:17:20 UTC (rev 2647) @@ -159,7 +159,10 @@ if ([download status] == SKDownloadStatusFinished) { NSURL *URL = [NSURL fileURLWithPath:[download filePath]]; NSError *error = nil; - if (NO == [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:URL display:YES error:&error]) + id document = [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:URL display:YES error:&error]; + if (document) + [document setFileName:[[URL path] lastPathComponent]]; + else [NSApp presentError:error]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit