Revision: 5012
http://skim-app.svn.sourceforge.net/skim-app/?rev=5012&view=rev
Author: hofman
Date: 2008-11-30 13:16:56 +0000 (Sun, 30 Nov 2008)
Log Message:
-----------
make sure string for template does not return nil
Modified Paths:
--------------
trunk/SKTemplateParser.m
Modified: trunk/SKTemplateParser.m
===================================================================
--- trunk/SKTemplateParser.m 2008-11-28 23:38:01 UTC (rev 5011)
+++ trunk/SKTemplateParser.m 2008-11-30 13:16:56 UTC (rev 5012)
@@ -936,7 +936,9 @@
@end
@implementation NSData (SKTemplateParser)
-- (NSString *)templateStringValue { return [[[NSString alloc]
initWithData:self encoding:NSUTF8StringEncoding] autorelease]; }
+- (NSString *)templateStringValue {
+ return [[[NSString alloc] initWithData:self encoding:NSUTF8StringEncoding]
autorelease] ?: [self description];
+}
@end
#pragma mark -
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit