Revision: 4238
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4238&view=rev
Author:   hofman
Date:     2008-07-17 16:49:33 +0000 (Thu, 17 Jul 2008)

Log Message:
-----------
Remove text and rtf notes when setting skim notes using tool

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

Modified: trunk/SkimNotes/skimnotes.m
===================================================================
--- trunk/SkimNotes/skimnotes.m 2008-07-17 13:31:06 UTC (rev 4237)
+++ trunk/SkimNotes/skimnotes.m 2008-07-17 16:49:33 UTC (rev 4238)
@@ -263,6 +263,8 @@
             if (data) {
                 SKNExtendedAttributeManager *eam = 
[SKNExtendedAttributeManager sharedManager];
                 success = [eam removeExtendedAttribute:SKIM_NOTES_KEY 
atPath:pdfPath traverseLink:YES error:&error] || [error code] == ENOATTR;
+                [eam removeExtendedAttribute:SKIM_RTF_NOTES_KEY atPath:pdfPath 
traverseLink:YES error:NULL];
+                [eam removeExtendedAttribute:SKIM_TEXT_NOTES_KEY 
atPath:pdfPath traverseLink:YES error:NULL];
                 if (success && [data length])
                     success = [eam setExtendedAttributeNamed:SKIM_NOTES_KEY 
toValue:data atPath:pdfPath options:0 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