Using modified DDHotKeyTextField to be notified about changes

This commit is contained in:
michael starke
2014-10-27 22:08:21 +01:00
parent a14b535d22
commit 2a1a7599a2
4 changed files with 9 additions and 4 deletions

View File

@@ -50,6 +50,7 @@
[self.enableQuicklookCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:quicklookKeyPath options:nil];
[self.hotKeyTextField bind:NSEnabledBinding toObject:defaultsController withKeyPath:enableGlobalAutotypeKeyPath options:nil];
self.hotKeyTextField.hotKey = self.hotKey;
self.hotKeyTextField.delegate = self;
}
- (void)setHotKey:(DDHotKey *)hotKey {
@@ -65,4 +66,8 @@
_hotKey = hotKey;
}
- (void)controlTextDidChange:(NSNotification *)obj {
NSLog(@"controlTextDidChange:");
}
@end