Revision: 7016
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7016&view=rev
Author:   hofman
Date:     2010-12-28 12:29:02 +0000 (Tue, 28 Dec 2010)

Log Message:
-----------
use displayname instead of last path component for display

Modified Paths:
--------------
    trunk/SKDownload.m
    trunk/SKScriptMenu.m

Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m  2010-12-28 10:28:56 UTC (rev 7015)
+++ trunk/SKDownload.m  2010-12-28 12:29:02 UTC (rev 7016)
@@ -166,7 +166,7 @@
 }
 
 - (NSString *)fileName {
-    NSString *fileName = [filePath lastPathComponent];
+    NSString *fileName = [[NSFileManager defaultManager] 
displayNameAtPath:filePath];
     if (fileName == nil) {
         if ([[URL path] length] > 1) {
             fileName = [[URL path] lastPathComponent];

Modified: trunk/SKScriptMenu.m
===================================================================
--- trunk/SKScriptMenu.m        2010-12-28 10:28:56 UTC (rev 7015)
+++ trunk/SKScriptMenu.m        2010-12-28 12:29:02 UTC (rev 7016)
@@ -215,7 +215,7 @@
         NSString *fileType = [fileAttributes valueForKey:NSFileType];
         BOOL isDir = [fileType isEqualToString:NSFileTypeDirectory];
         NSString *theUTI = [ws typeOfFile:[[filePath 
stringByStandardizingPath] stringByResolvingSymlinksInPath] error:NULL];
-        NSString *title = [file lastPathComponent];
+        NSString *title = [[NSFileManager defaultManager] 
displayNameAtPath:filePath];
         NSDictionary *dict = nil;
         
         NSScanner *scanner = [NSScanner scannerWithString:title];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to