summaryrefslogtreecommitdiffstats
path: root/macosx/HBAttributedStringAdditions.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-19 08:48:18 +0000
committerritsuka <[email protected]>2015-01-19 08:48:18 +0000
commitf69f4e15cf1a4e010aef3f1a77c768425562cc67 (patch)
tree711364237b9eef8a3e8fa90f2ace9d8b02c82a0e /macosx/HBAttributedStringAdditions.m
parent889e86edd3289486cd2cd1d6abc4e21296983dad (diff)
MacGui: moved the queue code from HBController to HBQueueController, reworked the way the queue synchronise itself between multiple instances to be more resilient (hopefully). Modified HBCore to take callback blocks instead of notifications.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6770 b64f7644-9d1e-0410-96f1-a4d463321fa5
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