summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioDefaultsController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-28 08:11:53 +0100
committerDamiano Galassi <[email protected]>2015-10-28 08:11:53 +0100
commit445938b7d30f2c7c695e8250c1e44d765c63531c (patch)
tree09de32d661901bfd29ac55b2f48517fe92bfdbeb /macosx/HBAudioDefaultsController.m
parent79df3e5408dbe6908767ee8525bba4c2b13e6a77 (diff)
MacGui: switched the audio defaults track tableview to view based, and fixed a number of typo.
Diffstat (limited to 'macosx/HBAudioDefaultsController.m')
-rw-r--r--macosx/HBAudioDefaultsController.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBAudioDefaultsController.m b/macosx/HBAudioDefaultsController.m
index b7c975016..cc90879de 100644
--- a/macosx/HBAudioDefaultsController.m
+++ b/macosx/HBAudioDefaultsController.m
@@ -8,7 +8,7 @@
#import "HBAudioDefaults.h"
#import "HBLanguagesSelection.h"
-static void *HBAudioDefaultsContex = &HBAudioDefaultsContex;
+static void *HBAudioDefaultsContext = &HBAudioDefaultsContext;
@interface HBAudioDefaultsController ()
@@ -40,7 +40,7 @@ static void *HBAudioDefaultsContex = &HBAudioDefaultsContex;
- (void)windowDidLoad
{
- [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:0 context:HBAudioDefaultsContex];
+ [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:0 context:HBAudioDefaultsContext];
if (self.settings.trackSelectionLanguages.count)
{
@@ -50,7 +50,7 @@ static void *HBAudioDefaultsContex = &HBAudioDefaultsContex;
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
{
- if (context == HBAudioDefaultsContex)
+ if (context == HBAudioDefaultsContext)
{
if ([keyPath isEqualToString:@"tableController.showSelectedOnly"])
{
@@ -96,7 +96,7 @@ static void *HBAudioDefaultsContex = &HBAudioDefaultsContex;
- (void)dealloc
{
@try {
- [self removeObserver:self forKeyPath:@"tableController.showSelectedOnly"];
+ [self removeObserver:self forKeyPath:@"tableController.showSelectedOnly" context:HBAudioDefaultsContext];
} @catch (NSException * __unused exception) {}
}