Revision: 4992
http://skim-app.svn.sourceforge.net/skim-app/?rev=4992&view=rev
Author: hofman
Date: 2008-11-25 11:20:10 +0000 (Tue, 25 Nov 2008)
Log Message:
-----------
remove unnecessary attributed string method for formatter
Modified Paths:
--------------
trunk/SKNumberArrayFormatter.m
Modified: trunk/SKNumberArrayFormatter.m
===================================================================
--- trunk/SKNumberArrayFormatter.m 2008-11-24 18:34:00 UTC (rev 4991)
+++ trunk/SKNumberArrayFormatter.m 2008-11-25 11:20:10 UTC (rev 4992)
@@ -85,25 +85,6 @@
return string;
}
-- (NSAttributedString *)attributedStringForObjectValue:(id)obj
withDefaultAttributes:(NSDictionary *)attrs {
- if ([obj isKindOfClass:[NSNumber class]])
- obj = [NSArray arrayWithObjects:obj, nil];
-
- NSEnumerator *numberEnum = [obj objectEnumerator];
- NSNumber *number;
- NSMutableAttributedString *string = [[[NSMutableAttributedString alloc]
init] autorelease];
-
- while (number = [numberEnum nextObject]) {
- NSAttributedString *s = [numberFormatter
attributedStringForObjectValue:number withDefaultAttributes:attrs];
- if ([s length]) {
- if ([string length])
- [string appendAttributedString:[[[NSAttributedString alloc]
initWithString:@" " attributes:attrs] autorelease]];
- [string appendAttributedString:s];
- }
- }
- return string;
-}
-
- (BOOL)getObjectValue:(id *)obj forString:(NSString *)string
errorDescription:(NSString **)error {
NSEnumerator *stringEnum = [[string componentsSeparatedByString:@" "]
objectEnumerator];
NSString *s;
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