mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-21 20:09:25 +00:00
Moder Objective-C. Adoping changed KeePassKit API
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
@@ -285,12 +285,7 @@ typedef NS_ENUM(NSUInteger, MPContentTab) {
|
||||
[self.itemImageView bind:NSValueBinding toObject:item withKeyPath:NSStringFromSelector(@selector(iconImage)) options:nil];
|
||||
[[self.notesTextView enclosingScrollView] setHidden:NO];
|
||||
[self.notesTextView bind:NSValueBinding toObject:item withKeyPath:NSStringFromSelector(@selector(notes)) options:nil];
|
||||
if([item respondsToSelector:@selector(title)]) {
|
||||
[self.itemNameTextField bind:NSValueBinding toObject:item withKeyPath:NSStringFromSelector(@selector(title)) options:nil];
|
||||
}
|
||||
else if( [item respondsToSelector:@selector(name)]) {
|
||||
[self.itemNameTextField bind:NSValueBinding toObject:item withKeyPath:NSStringFromSelector(@selector(name)) options:nil];
|
||||
}
|
||||
[self.itemNameTextField bind:NSValueBinding toObject:item withKeyPath:NSStringFromSelector(@selector(title)) options:nil];
|
||||
[self.itemImageView setHidden:NO];
|
||||
[self.itemNameTextField setHidden:NO];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user