Revision: 5805
http://skim-app.svn.sourceforge.net/skim-app/?rev=5805&view=rev
Author: hofman
Date: 2009-09-24 12:49:08 +0000 (Thu, 24 Sep 2009)
Log Message:
-----------
Use the RTF data as an UTF8 encoded string for the name of a rich text format
specifier. Note that RTF is also saved using UTF8 so that should always work.
Modified Paths:
--------------
trunk/SKRichTextFormat.m
Modified: trunk/SKRichTextFormat.m
===================================================================
--- trunk/SKRichTextFormat.m 2009-09-24 10:07:42 UTC (rev 5804)
+++ trunk/SKRichTextFormat.m 2009-09-24 12:49:08 UTC (rev 5805)
@@ -37,7 +37,6 @@
*/
#import "SKRichTextFormat.h"
-#import "NSData_SKExtensions.h"
@implementation SKRichTextFormat
@@ -63,10 +62,7 @@
}
- (id)initWithName:(NSString *)aName {
- NSData *aData = [[NSData alloc] initWithBase64String:aName];
- self = [self initWithData:aData];
- [aData release];
- return self;
+ return [self initWithData:[aName dataUsingEncoding:NSUTF8StringEncoding]];
}
- (void)dealloc {
@@ -80,7 +76,7 @@
}
- (NSString *)name {
- return [data base64String];
+ return [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]
autorelease];
}
- (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