summaryrefslogtreecommitdiffstats
path: root/macosx/HBAttributedStringAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAttributedStringAdditions.m')
-rw-r--r--macosx/HBAttributedStringAdditions.m20
1 files changed, 20 insertions, 0 deletions
diff --git a/macosx/HBAttributedStringAdditions.m b/macosx/HBAttributedStringAdditions.m
new file mode 100644
index 000000000..fc685482d
--- /dev/null
+++ b/macosx/HBAttributedStringAdditions.m
@@ -0,0 +1,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 \ No newline at end of file