mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 22:52:26 +00:00
Really fixed crash on entries with custom attributes
This commit is contained in:
@@ -52,7 +52,7 @@ NSInteger MPCustomFieldIndexFromTag(NSInteger tag) {
|
||||
|
||||
- (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {
|
||||
MPCustomFieldTableCellView *view = [tableView makeViewWithIdentifier:@"SelectedCell" owner:tableView];
|
||||
|
||||
|
||||
[view.labelTextField bind:NSValueBinding
|
||||
toObject:view
|
||||
withKeyPath:@"objectValue.key"
|
||||
@@ -63,12 +63,12 @@ NSInteger MPCustomFieldIndexFromTag(NSInteger tag) {
|
||||
options:nil];
|
||||
[view.protectedButton bind:NSValueBinding
|
||||
toObject:view
|
||||
withKeyPath:@"objectValue.protected"
|
||||
withKeyPath:@"objectValue.protect"
|
||||
options:nil];
|
||||
|
||||
[view.valueTextField bind:NSStringFromSelector(@selector(showPassword))
|
||||
toObject:view
|
||||
withKeyPath:@"objectValue.protected"
|
||||
withKeyPath:@"objectValue.protect"
|
||||
options:@{NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName}];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user