Revision: 5134
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5134&view=rev
Author:   hofman
Date:     2009-01-20 12:07:06 +0000 (Tue, 20 Jan 2009)

Log Message:
-----------
Add convenience class method to get fully prepared property specifier for rich 
text.

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

Modified: trunk/SKTextCommand.m
===================================================================
--- trunk/SKTextCommand.m       2009-01-20 12:03:09 UTC (rev 5133)
+++ trunk/SKTextCommand.m       2009-01-20 12:07:06 UTC (rev 5134)
@@ -74,12 +74,7 @@
     
     if (data == nil)
         data = [attributedString RTFRepresentation];
-    if (data) {
-        NSScriptObjectSpecifier *containerRef = [[[[SKRichTextFormat alloc] 
initWithData:data] autorelease] objectSpecifier];
-        if (containerRef)
-            return [[[NSPropertySpecifier allocWithZone:[self zone]] 
initWithContainerClassDescription:[containerRef keyClassDescription] 
containerSpecifier:containerRef key:@"richText"] autorelease];
-    }
-    return nil;
+    return data ? [SKRichTextFormat richTextSpecifierWithData:data] : nil;
 }
 
 @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