Revision: 2739
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2739&view=rev
Author:   hofman
Date:     2007-08-28 02:24:37 -0700 (Tue, 28 Aug 2007)

Log Message:
-----------
Fix skimnotes command line tool: unarchive text, which is saved as an archived 
plist rather than string data.

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

Modified: trunk/skimnotes.m
===================================================================
--- trunk/skimnotes.m   2007-08-27 20:21:25 UTC (rev 2738)
+++ trunk/skimnotes.m   2007-08-28 09:24:37 UTC (rev 2739)
@@ -65,8 +65,9 @@
                 data = [NSData data];
         } else if ([[notesPath pathExtension] caseInsensitiveCompare:@"txt"] 
== NSOrderedSame || [[notesPath pathExtension] caseInsensitiveCompare:@"text"] 
== NSOrderedSame) {
             NSError *error = nil;
-            data = [fm extendedAttributeNamed:SKIM_TEXT_NOTES_KEY 
atPath:pdfPath traverseLink:YES error:&error];
-            if (data == nil && [error code] == ENOATTR)
+            NSString *string = [fm 
propertyListFromExtendedAttributeNamed:SKIM_TEXT_NOTES_KEY atPath:pdfPath 
traverseLink:YES error:&error];
+            data = [string dataUsingEncoding:NSUTF8StringEncoding];
+            if (string == nil && [error code] == ENOATTR)
                 data = [NSData data];
         } else {
             NSError *error = nil;


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to