Revision: 5806
http://skim-app.svn.sourceforge.net/skim-app/?rev=5806&view=rev
Author: hofman
Date: 2009-09-24 15:31:28 +0000 (Thu, 24 Sep 2009)
Log Message:
-----------
revert last change as I don't trust AppleScript with an arbitrary UTF8 string
Modified Paths:
--------------
trunk/SKRichTextFormat.m
Modified: trunk/SKRichTextFormat.m
===================================================================
--- trunk/SKRichTextFormat.m 2009-09-24 12:49:08 UTC (rev 5805)
+++ trunk/SKRichTextFormat.m 2009-09-24 15:31:28 UTC (rev 5806)
@@ -37,6 +37,7 @@
*/
#import "SKRichTextFormat.h"
+#import "NSData_SKExtensions.h"
@implementation SKRichTextFormat
@@ -62,7 +63,10 @@
}
- (id)initWithName:(NSString *)aName {
- return [self initWithData:[aName dataUsingEncoding:NSUTF8StringEncoding]];
+ NSData *aData = [[NSData alloc] initWithBase64String:aName];
+ self = [self initWithData:aData];
+ [aData release];
+ return self;
}
- (void)dealloc {
@@ -76,7 +80,7 @@
}
- (NSString *)name {
- return [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]
autorelease];
+ return [data base64String];
}
- (NSTextStorage *)richText {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit