summaryrefslogtreecommitdiffstats
path: root/macosx/HBAttributedStringAdditions.m
blob: fc685482d65770701c7e94449b89196952e026a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
//  HBAttributedStringAdditions.m
//  HandBrake
//
//  Created by Damiano Galassi on 16/01/15.
//
//

#import "HBAttributedStringAdditions.h"

@implementation NSMutableAttributedString (HBAttributedStringAdditions)

- (void)appendString:(NSString *)aString withAttributes:(NSDictionary *)aDictionary
{
    NSAttributedString *s = [[[NSAttributedString alloc] initWithString:aString
                                                             attributes:aDictionary] autorelease];
    [self appendAttributedString:s];
}

@end