Revision: 4337
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4337&view=rev
Author:   hofman
Date:     2008-08-02 19:25:19 +0000 (Sat, 02 Aug 2008)

Log Message:
-----------
Copy pdf to pdf bundle in skimnotes convert action.

Modified Paths:
--------------
    trunk/SkimNotes/skimnotes.m

Modified: trunk/SkimNotes/skimnotes.m
===================================================================
--- trunk/SkimNotes/skimnotes.m 2008-08-02 18:58:58 UTC (rev 4336)
+++ trunk/SkimNotes/skimnotes.m 2008-08-02 19:25:19 UTC (rev 4337)
@@ -309,7 +309,10 @@
                     pdfFilePath = [pdfPath 
stringByAppendingPathComponent:filename];
                 success = [fm copyPath:pdfFilePath toPath:notesPath 
handler:nil];
             } else {
-                success = [fm createDirectoryAtPath:notesPath attributes:nil];
+                if (success = [fm createDirectoryAtPath:notesPath 
attributes:nil]) {
+                    NSString *pdfFilePath = [notesPath 
stringByAppendingPathComponent:[[[notesPath lastPathComponent] 
stringByDeletingPathExtension] stringByAppendingPathExtension:PDFD_EXTENSION]];
+                    success = [fm copyPath:pdfPath toPath:pdfFilePath 
handler:nil];
+                }
             }
             if (success) {
                 NSData *notesData = [fm SkimNotesAtPath:pdfPath error:&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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to