/* * Name: OGMutablePlainString.h * Project: OgreKit * * Creation Date: Sep 22 2004 * Author: Isao Sonobe * Copyright: Copyright (c) 2004 Isao Sonobe, All rights reserved. * License: OgreKit License * * Encoding: UTF8 * Tabsize: 4 */ #import @implementation OGMutablePlainString - (id)init { self = [super init]; if (self != nil) { [self _setString:[[[NSMutableString alloc] init] autorelease]]; } return self; } - (id)initWithString:(NSString*)string { if (string == nil) { [super release]; [NSException raise:NSInvalidArgumentException format: @"nil string argument"]; } self = [super init]; if (self != nil) { [self _setString:[[[NSMutableString alloc] initWithString:string] autorelease]]; } return self; } /* OGMutableStringProtocol */ - (void)appendOGString:(NSObject*)string { [(NSMutableString*)[self _string] appendString:[string string]]; } - (void)appendString:(NSString*)string { [(NSMutableString*)[self _string] appendString:string]; } - (void)appendString:(NSString*)string hasAttributesOfOGString:(NSObject*)ogString { [(NSMutableString*)[self _string] appendString:string]; } - (void)appendAttributedString:(NSAttributedString*)string { [(NSMutableString*)[self _string] appendString:[string string]]; } - (void)appendOGStringLeaveImprint:(NSObject*)string { [(NSMutableString*)[self _string] appendString:[string string]]; } - (void)appendOGString:(NSObject*)string changeFont:(BOOL)changeFont mergeAttributes:(BOOL)mergeAttributes ofOGString:(NSObject*)srcString { [(NSMutableString*)[self _string] appendString:[string string]]; } - (void)appendOGString:(NSObject*)string changeFont:(BOOL)changeFont mergeAttributes:(BOOL)mergeAttributes { [(NSMutableString*)[self _string] appendString:[string string]]; } - (void)setAttributesOfOGString:(NSObject*)string atIndex:(unsigned)index { /* do nothing */ } @end