Moving away from custom "didLoadView" initialisations.

Added DDHotKeyTextField to settings to be able to customise global auto type hotkey. (still disabled for now)
This commit is contained in:
michael starke
2014-03-23 21:07:16 +01:00
parent 65375d9f49
commit 273b77572b
3 changed files with 15 additions and 5 deletions

View File

@@ -33,7 +33,7 @@
return self;
}
- (void)didLoadView {
- (void)awakeFromNib {
NSUserDefaultsController *defaultsController = [NSUserDefaultsController sharedUserDefaultsController];
NSString *serverKeyPath = [MPSettingsHelper defaultControllerPathForKey:kMPSettingsKeyEnableHttpServer];
NSString *globalAutotypeKeyPath = [MPSettingsHelper defaultControllerPathForKey:kMPSettingsKeyEnableGlobalAutotype];
@@ -41,8 +41,8 @@
[self.enableServerCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:serverKeyPath options:nil];
[self.enableServerCheckbutton setEnabled:NO];
[self.enableGlobalAutotypeCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:globalAutotypeKeyPath options:nil];
//[self.enableGlobalAutotypeCheckbutton setEnabled:NO];
[self.enableQuicklookCheckbutton bind:NSValueBinding toObject:defaultsController withKeyPath:quicklookKeyPath options:nil];
}
@end