mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 02:23:36 +00:00
Using bindings for iconImage for instant updates
Icon setting now gets registered via NSUndoManager Refactored iconId property
This commit is contained in:
@@ -237,12 +237,12 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
view = [tableView makeViewWithIdentifier:_MPTableImageCellView owner:self];
|
||||
if( isTitleColumn ) {
|
||||
[[view textField] bind:NSValueBinding toObject:entry withKeyPath:@"title" options:nil];
|
||||
[[view imageView] setImage:entry.iconImage];
|
||||
[[view imageView] bind:NSValueBinding toObject:entry withKeyPath:@"iconImage" options:nil];
|
||||
}
|
||||
else {
|
||||
assert(entry.parent);
|
||||
[[view textField] bind:NSValueBinding toObject:entry.parent withKeyPath:@"name" options:nil];
|
||||
[[view imageView] setImage:entry.iconImage];
|
||||
[[view imageView] bind:NSValueBinding toObject:entry.parent withKeyPath:@"iconImage" options:nil];
|
||||
}
|
||||
}
|
||||
else if(isPasswordColum) {
|
||||
|
||||
Reference in New Issue
Block a user