summaryrefslogtreecommitdiffstats
path: root/macosx/HBRange.m
diff options
context:
space:
mode:
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