From 687a0ec0945db279a39ede90a72b2ec4c1e31135 Mon Sep 17 00:00:00 2001 From: michael starke Date: Thu, 19 Oct 2017 13:27:41 +0200 Subject: [PATCH] setup delegate in xib instead of code --- MacPass/Base.lproj/PasswordInputView.xib | 5 +++-- MacPass/MPPasswordInputController.m | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/MacPass/Base.lproj/PasswordInputView.xib b/MacPass/Base.lproj/PasswordInputView.xib index ed545c9a..1179a1c9 100644 --- a/MacPass/Base.lproj/PasswordInputView.xib +++ b/MacPass/Base.lproj/PasswordInputView.xib @@ -1,7 +1,8 @@ - + - + + diff --git a/MacPass/MPPasswordInputController.m b/MacPass/MPPasswordInputController.m index 01d5a81e..62070e92 100644 --- a/MacPass/MPPasswordInputController.m +++ b/MacPass/MPPasswordInputController.m @@ -35,7 +35,6 @@ @property (weak) IBOutlet HNHUIRoundedSecureTextField *passwordTextField; @property (weak) IBOutlet NSPathControl *keyPathControl; -@property (strong) MPKeyfilePathControlDelegate *pathControlDelegate; @property (weak) IBOutlet NSImageView *errorImageView; @property (weak) IBOutlet NSTextField *errorInfoTextField; @property (weak) IBOutlet NSButton *togglePasswordButton; @@ -71,7 +70,6 @@ } - (void)viewDidLoad { - self.keyPathControl.delegate = self.pathControlDelegate = [[MPKeyfilePathControlDelegate alloc] init]; self.errorImageView.image = [NSImage imageNamed:NSImageNameCaution]; [self.passwordTextField bind:NSStringFromSelector(@selector(showPassword)) toObject:self withKeyPath:NSStringFromSelector(@selector(showPassword)) options:nil]; [self.togglePasswordButton bind:NSValueBinding toObject:self withKeyPath:NSStringFromSelector(@selector(showPassword)) options:nil];