summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-11-27 09:01:03 +0100
committerDamiano Galassi <[email protected]>2017-11-27 09:01:03 +0100
commitb9d712b7e34f497758dd42f16fb3c9c432226497 (patch)
tree6d83d85ed4ccd0b9144dff009fc166858db830c6
parent14744098e879747b1cc1f825108bdb416702acf6 (diff)
MacGui: use the KVO constants.
-rw-r--r--macosx/HBSummaryViewController.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/macosx/HBSummaryViewController.m b/macosx/HBSummaryViewController.m
index 36b9d2412..381779ebc 100644
--- a/macosx/HBSummaryViewController.m
+++ b/macosx/HBSummaryViewController.m
@@ -100,24 +100,24 @@ static void *HBSummaryViewControllerContext = &HBSummaryViewControllerContext;
{
if ([keyPath isEqualToString:@"audio.tracks"])
{
- if ([change[@"kind"] integerValue] == NSKeyValueChangeInsertion)
+ if ([change[NSKeyValueChangeKindKey] integerValue] == NSKeyValueChangeInsertion)
{
- [self addAudioTracksObservers:change[@"new"]];
+ [self addAudioTracksObservers:change[NSKeyValueChangeNewKey]];
}
- else if ([change[@"kind"] integerValue]== NSKeyValueChangeRemoval)
+ else if ([change[NSKeyValueChangeKindKey] integerValue]== NSKeyValueChangeRemoval)
{
- [self removeAudioTracksObservers:change[@"old"]];
+ [self removeAudioTracksObservers:change[NSKeyValueChangeOldKey]];
}
}
else if ([keyPath isEqualToString:@"subtitles.tracks"])
{
- if ([change[@"kind"] integerValue] == NSKeyValueChangeInsertion)
+ if ([change[NSKeyValueChangeKindKey] integerValue] == NSKeyValueChangeInsertion)
{
- [self addSubtitlesTracksObservers:change[@"new"]];
+ [self addSubtitlesTracksObservers:change[NSKeyValueChangeNewKey]];
}
- else if ([change[@"kind"] integerValue]== NSKeyValueChangeRemoval)
+ else if ([change[NSKeyValueChangeKindKey] integerValue]== NSKeyValueChangeRemoval)
{
- [self removeSubtitlesTracksObservers:change[@"old"]];
+ [self removeSubtitlesTracksObservers:change[NSKeyValueChangeOldKey]];
}
}
else if ([keyPath isEqualToString:@"container"] && change[NSKeyValueChangeNewKey] && NSAppKitVersionNumber >= NSAppKitVersionNumber10_10)