Revision: 7772
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7772&view=rev
Author:   hofman
Date:     2012-11-02 14:11:38 +0000 (Fri, 02 Nov 2012)
Log Message:
-----------
use app name from info.plist for chewable items dir

Modified Paths:
--------------
    trunk/NSFileManager_SKExtensions.m

Modified: trunk/NSFileManager_SKExtensions.m
===================================================================
--- trunk/NSFileManager_SKExtensions.m  2012-11-02 11:22:26 UTC (rev 7771)
+++ trunk/NSFileManager_SKExtensions.m  2012-11-02 14:11:38 UTC (rev 7772)
@@ -87,7 +87,8 @@
         FSRef chewableRef;
         if (noErr == FSFindFolder(kUserDomain, kChewableItemsFolderType, TRUE, 
&chewableRef)) {
             NSURL *chewableURL = (NSURL 
*)CFURLCreateFromFSRef(kCFAllocatorDefault, &chewableRef);
-            chewableItemsDirectoryURL = [[chewableURL 
URLByAppendingPathComponent:@"Skim"] copy];
+            NSString *appName = [[NSBundle mainBundle] 
objectForInfoDictionaryKey:(NSString *)kCFBundleNameKey];
+            chewableItemsDirectoryURL = [[chewableURL 
URLByAppendingPathComponent:appName] copy];
             if ([self fileExistsAtURL:chewableItemsDirectoryURL] == NO)
                 [self createDirectoryAtPath:[chewableItemsDirectoryURL path] 
withIntermediateDirectories:NO attributes:nil error:NULL];
             [chewableURL release];

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


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to