Revision: 5146
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5146&view=rev
Author:   hofman
Date:     2009-01-21 15:20:13 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
Allow getting text from any rich text data formats NSAttributedString 
understands

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

Modified: trunk/SKRichTextFormat.m
===================================================================
--- trunk/SKRichTextFormat.m    2009-01-21 15:14:27 UTC (rev 5145)
+++ trunk/SKRichTextFormat.m    2009-01-21 15:20:13 UTC (rev 5146)
@@ -84,7 +84,8 @@
 }
 
 - (NSTextStorage *)richText {
-    return [[[NSTextStorage alloc] initWithRTF:data documentAttributes:nil] 
autorelease];
+    NSError *error;
+    return [[[NSTextStorage alloc] initWithData:data options:[NSDictionary 
dictionary] documentAttributes:NULL error:&error] autorelease];
 }
 
 @end


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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to