Frameworks/AIUtilities Framework/Source/AIRichTextCoercer.m
branchadium-1.5.10.5
changeset 5997 d88e6711d0e0
parent 3679 f4294bb53b0f
equal deleted inserted replaced
5996:1894c44cfd13 5997:d88e6711d0e0
    53 			//The input string is mutable, so make a copy of the string.
    53 			//The input string is mutable, so make a copy of the string.
    54 			result = [[result copy] autorelease];
    54 			result = [[result copy] autorelease];
    55 		}
    55 		}
    56 	}
    56 	}
    57 
    57 
       
    58     /*
    58 	enum { RIGHTWARDS_ARROW = 0x2192 };
    59 	enum { RIGHTWARDS_ARROW = 0x2192 };
    59 	NSLog(@"%s: Input '%@' %C Class %@ %C Result '%@'", __PRETTY_FUNCTION__, input, RIGHTWARDS_ARROW, class, RIGHTWARDS_ARROW, result);
    60 	NSLog(@"%s: Input '%@' %C Class %@ %C Result '%@'", __PRETTY_FUNCTION__, input, RIGHTWARDS_ARROW, class, RIGHTWARDS_ARROW, result);
    60 
    61      */
       
    62     
    61 	return result;
    63 	return result;
    62 }
    64 }
    63 + (id)coercePlainText:(NSString *)input toClass:(Class)class
    65 + (id)coercePlainText:(NSString *)input toClass:(Class)class
    64 {
    66 {
    65 	if([class isSubclassOfClass:[NSAttributedString class]]) {
    67 	if([class isSubclassOfClass:[NSAttributedString class]]) {