summaryrefslogtreecommitdiffstats
path: root/macosx/HBRange.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-27 10:46:04 +0000
committerritsuka <[email protected]>2014-12-27 10:46:04 +0000
commitdf8b2ff3e109699e3dadd88404911f8dfc7b210a (patch)
tree8489fee4edaf57adf55f69d0c0d28f61a5757057 /macosx/HBRange.m
parent8df584534c0c39f5c2f298d8ba480cc906743bbf (diff)
MacGui: change the queue to work with serialized HBJob objects, remove the NSDictionary job representation and the duplicate prepareJob method. Implement NSCopying protocol in HBJob.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6655 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBRange.m')
-rw-r--r--macosx/HBRange.m20
1 files changed, 20 insertions, 0 deletions
diff --git a/macosx/HBRange.m b/macosx/HBRange.m
index 731fcebf7..83df24b66 100644
--- a/macosx/HBRange.m
+++ b/macosx/HBRange.m
@@ -77,6 +77,26 @@
return retval;
}
+#pragma mark - NSCopying
+
+- (instancetype)copyWithZone:(NSZone *)zone
+{
+ HBRange *copy = [[[self class] alloc] init];
+
+ if (copy)
+ {
+ copy->_type = _type;
+ copy->_chapterStart = _chapterStart;
+ copy->_chapterStop = _chapterStop;
+ copy->_secondsStart = _secondsStart;
+ copy->_secondsStop = _secondsStop;
+ copy->_frameStart = _frameStart;
+ copy->_frameStop = _frameStop;
+ }
+
+ return copy;
+}
+
#pragma mark - NSCoding
- (void)encodeWithCoder:(NSCoder *)coder