summaryrefslogtreecommitdiffstats
path: root/macosx/HBRange.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBRange.m')
-rw-r--r--macosx/HBRange.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBRange.m b/macosx/HBRange.m
index b176c872f..bd0e5730c 100644
--- a/macosx/HBRange.m
+++ b/macosx/HBRange.m
@@ -105,6 +105,11 @@
return retval;
}
+- (void)setNilValueForKey:(NSString *)key
+{
+ [self setValue:@0 forKey:key];
+}
+
#pragma mark - NSCopying
- (instancetype)copyWithZone:(NSZone *)zone