//
//  CategoryHierarchyFormatter.m
//  Flash2
//
//  Copyright 2008 Nicholas Matsakis. 
//  The code in thie file is released to the public under the
//  terms of the MIT License as described here:
//  http://www.opensource.org/licenses/mit-license.php
//

#import "CategoryHierarchyFormatter.h"
#import "OxNSString.h"

@implementation CategoryHierarchyFormatter

- (NSString*) stringForObjectValue:(id)value {
    return value;
}

- (BOOL)getObjectValue:(id *)anObject forString:(NSString *)string errorDescription:(NSString **)error {
    *anObject = string;
    return YES;
}

- (NSAttributedString *)attributedStringForObjectValue:(id)anObject withDefaultAttributes:(NSDictionary *)attributes {
    return [[[NSAttributedString alloc] initWithString:anObject attributes:attributes] autorelease];
}

- (NSString *)editingStringForObjectValue:(id)anObject {
    return [anObject strip];
}

@end
