mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 07:59:27 +00:00
Using modified DDHotKeyTextField to be notified about changes
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
@class DDHotKeyTextField;
|
||||
|
||||
@interface MPIntegrationSettingsController : MPViewController <MPSettingsTab>
|
||||
@interface MPIntegrationSettingsController : MPViewController <MPSettingsTab, NSTextFieldDelegate>
|
||||
|
||||
@property (weak) IBOutlet NSButton *enableServerCheckbutton;
|
||||
@property (weak) IBOutlet NSButton *enableGlobalAutotypeCheckbutton;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user