| 259 | | else _attributedMessage = [[NSTextStorage alloc] initWithAttributedString:message]; |
|---|
| 260 | | } else [_attributedMessage setAttributedString:message]; |
|---|
| | 259 | else if( [message isKindOfClass:[NSAttributedString class]] ) _attributedMessage = [[NSTextStorage alloc] initWithAttributedString:message]; |
|---|
| | 260 | else if( [message isKindOfClass:[NSString class]] ) _attributedMessage = [[NSAttributedString alloc] initWithString:(NSString *)message]; |
|---|
| | 261 | } else if( _attributedMessage && [message isKindOfClass:[NSAttributedString class]] ) { |
|---|
| | 262 | [_attributedMessage setAttributedString:message]; |
|---|
| | 263 | } else if( _attributedMessage && [message isKindOfClass:[NSString class]] ) { |
|---|
| | 264 | id string = [[[NSAttributedString alloc] initWithString:(NSString *)message] autorelease]; |
|---|
| | 265 | [_attributedMessage setAttributedString:string]; |
|---|
| | 266 | } |
|---|