Revision: 4251
http://skim-app.svn.sourceforge.net/skim-app/?rev=4251&view=rev
Author: hofman
Date: 2008-07-18 16:48:43 +0000 (Fri, 18 Jul 2008)
Log Message:
-----------
remove FDF file from bundle when removing notes
Modified Paths:
--------------
trunk/SkimNotes/NSFileManager_SKNToolExtensions.m
Modified: trunk/SkimNotes/NSFileManager_SKNToolExtensions.m
===================================================================
--- trunk/SkimNotes/NSFileManager_SKNToolExtensions.m 2008-07-18 16:36:45 UTC
(rev 4250)
+++ trunk/SkimNotes/NSFileManager_SKNToolExtensions.m 2008-07-18 16:48:43 UTC
(rev 4251)
@@ -44,6 +44,7 @@
#define SKIM_EXTENSION @"skim"
#define TXT_EXTENSION @"txt"
#define RTF_EXTENSION @"rtf"
+#define FDF_EXTENSION @"fdf"
#define BUNDLE_DATA_FILENAME @"data"
@@ -205,6 +206,8 @@
success2 = [self removeFileAtPath:notePath handler:nil];
if (notePath = [self notesFileWithExtension:RTF_EXTENSION atPath:path
error:NULL])
success3 = [self removeFileAtPath:notePath handler:nil];
+ if (notePath = [self notesFileWithExtension:FDF_EXTENSION atPath:path
error:NULL])
+ [self removeFileAtPath:notePath handler:nil];
if (success1 == NO || success2 == NO || success3 == NO)
error1 = error2 = error3 = [NSError
errorWithDomain:NSPOSIXErrorDomain code:ENOENT userInfo:[NSDictionary
dictionaryWithObjectsAndKeys:@"Could not remove notes file",
NSLocalizedDescriptionKey, nil]];
} else {
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