Revision: 6878
http://skim-app.svn.sourceforge.net/skim-app/?rev=6878&view=rev
Author: hofman
Date: 2010-10-19 11:36:24 +0000 (Tue, 19 Oct 2010)
Log Message:
-----------
don't use snow leopard method
Modified Paths:
--------------
trunk/SKDownload.m
Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m 2010-10-19 10:46:38 UTC (rev 6877)
+++ trunk/SKDownload.m 2010-10-19 11:36:24 UTC (rev 6878)
@@ -39,8 +39,6 @@
#import "SKDownload.h"
#import <ApplicationServices/ApplicationServices.h>
#import "NSFileManager_SKExtensions.h"
-#import "NSURL_SKExtensions.h"
-#import "NSString_SKExtensions.h"
NSString *SKDownloadFileNameKey = @"fileName";
NSString *SKDownloadStatusKey = @"status";
@@ -171,11 +169,11 @@
NSString *fileName = [filePath lastPathComponent];
if (fileName == nil) {
if ([[URL path] length] > 1) {
- fileName = [URL lastPathComponent];
+ fileName = [[URL path] lastPathComponent];
} else {
fileName = [URL host];
if (fileName == nil)
- fileName = [[[URL resourceSpecifier] lastPathComponent]
stringByReplacingPercentEscapes];
+ fileName = [[[URL resourceSpecifier] lastPathComponent]
stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
}
}
return fileName;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit