mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-21 02:19:24 +00:00
Using bindings for iconImage for instant updates
Icon setting now gets registered via NSUndoManager Refactored iconId property
This commit is contained in:
@@ -196,9 +196,9 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
||||
KPKGroup *group = [item representedObject];
|
||||
view = [outlineView makeViewWithIdentifier:_MPOutlineViewDataViewIdentifier owner:self];
|
||||
|
||||
[view.imageView setImage:group.iconImage];
|
||||
[view.textField bind:NSValueBinding toObject:group withKeyPath:@"name" options:nil];
|
||||
[view.textField bind:@"count" toObject:group withKeyPath:@"entries.@count" options:nil];
|
||||
[[view imageView] bind:NSValueBinding toObject:group withKeyPath:@"iconImage" options:nil];
|
||||
[[view textField] bind:NSValueBinding toObject:group withKeyPath:@"name" options:nil];
|
||||
[[view textField] bind:@"count" toObject:group withKeyPath:@"entries.@count" options:nil];
|
||||
}
|
||||
|
||||
return view;
|
||||
|
||||
Reference in New Issue
Block a user