Revision: 18162
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18162&view=rev
Author:   hofman
Date:     2011-10-07 13:10:38 +0000 (Fri, 07 Oct 2011)
Log Message:
-----------
use appkit extension to read RTF data

Modified Paths:
--------------
    trunk/bibdesk/NSAttributedString_BDSKExtensions.m

Modified: trunk/bibdesk/NSAttributedString_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSAttributedString_BDSKExtensions.m   2011-10-07 12:41:30 UTC 
(rev 18161)
+++ trunk/bibdesk/NSAttributedString_BDSKExtensions.m   2011-10-07 13:10:38 UTC 
(rev 18162)
@@ -266,12 +266,8 @@
 }
 
 - (void)setScriptingRTF:(id)data {
-    if (data) {
-        NSAttributedString *attrString = [[NSAttributedString alloc] 
initWithData:data options:[NSDictionary dictionary] documentAttributes:NULL 
error:NULL];
-        if (attrString)
-            [self setAttributedString:attrString];
-        [attrString release];
-    }
+    if (data)
+        [self readFromData:data options:[NSDictionary dictionary] 
documentAttributes:NULL error:NULL];
 }
 
 @end

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to