diff options
author | Damiano Galassi <[email protected]> | 2016-03-14 09:46:39 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-03-14 09:46:39 +0100 |
commit | ee4ae6d3a0aa6d06b7a5aedec7e88570c868b8a8 (patch) | |
tree | c7e6e05fa5c9994766da01089170841327ec8be0 /macosx/HBRange+UIAdditions.m | |
parent | 20b5485afa48a6210eb5503bade70166d06fc5a4 (diff) |
MacGui: move some kvo helpers to the UIAdditions category.
Diffstat (limited to 'macosx/HBRange+UIAdditions.m')
-rw-r--r-- | macosx/HBRange+UIAdditions.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/macosx/HBRange+UIAdditions.m b/macosx/HBRange+UIAdditions.m index f7061acf7..18710a159 100644 --- a/macosx/HBRange+UIAdditions.m +++ b/macosx/HBRange+UIAdditions.m @@ -30,14 +30,29 @@ return self.type == HBRangeTypeChapters; } ++ (NSSet<NSString *> *)keyPathsForValuesAffectingChaptersSelected +{ + return [NSSet setWithObjects:@"type", nil]; +} + - (BOOL)secondsSelected { return self.type == HBRangeTypeSeconds; } ++ (NSSet<NSString *> *)keyPathsForValuesAffectingSecondsSelected +{ + return [NSSet setWithObjects:@"type", nil]; +} + - (BOOL)framesSelected { return self.type == HBRangeTypeFrames; } ++ (NSSet<NSString *> *)keyPathsForValuesAffectingFramesSelected +{ + return [NSSet setWithObjects:@"type", nil]; +} + @end |