summaryrefslogtreecommitdiffstats
path: root/macosx/HBMutablePreset.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-13 10:22:02 +0200
committerDamiano Galassi <[email protected]>2015-10-13 10:22:02 +0200
commit14839ed2b8a7e4615b2c30fe8a46bb63819d0b40 (patch)
treef8684e1d7eb41fa1df0c420da50cd4f53f692e64 /macosx/HBMutablePreset.m
parentb8bcf81a60e505135cab3f6deeb090989012ba5e (diff)
MacGui: remove some HBPreset -> NSDictionary conversions and add a mutable version of HBPreset.
Diffstat (limited to 'macosx/HBMutablePreset.m')
-rw-r--r--macosx/HBMutablePreset.m35
1 files changed, 35 insertions, 0 deletions
diff --git a/macosx/HBMutablePreset.m b/macosx/HBMutablePreset.m
new file mode 100644
index 000000000..a41445b84
--- /dev/null
+++ b/macosx/HBMutablePreset.m
@@ -0,0 +1,35 @@
+//
+// HBMutablePreset.m
+// HandBrake
+//
+// Created by Damiano Galassi on 12/10/15.
+//
+//
+
+#import "HBMutablePreset.h"
+
+@interface HBPreset (HBMutablePreset)
+
+@property (nonatomic, strong, nullable) NSMutableDictionary *content;
+- (void)cleanUp;
+
+@end
+
+@implementation HBMutablePreset
+
+- (void)setObject:(id)obj forKey:(NSString *)key;
+{
+ self.content[key] = obj;
+}
+
+- (void)setObject:(id)obj forKeyedSubscript:(NSString *)key
+{
+ self.content[key] = obj;
+}
+
+- (void)cleanUp
+{
+ [super cleanUp];
+}
+
+@end