mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 07:02:39 +00:00
26 lines
568 B
Objective-C
26 lines
568 B
Objective-C
//
|
|
// MPArrayController.m
|
|
// MacPass
|
|
//
|
|
// Created by Michael Starke on 30/08/16.
|
|
// Copyright © 2016 HicknHack Software GmbH. All rights reserved.
|
|
//
|
|
|
|
#import "MPArrayController.h"
|
|
#import "MPModelChangeObserving.h"
|
|
|
|
@implementation MPArrayController
|
|
|
|
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath {
|
|
if([keyPath hasPrefix:@"selection."]) {
|
|
[self.observer willChangeModelProperty];
|
|
[super setValue:value forKeyPath:keyPath];
|
|
[self.observer didChangeModelProperty];
|
|
}
|
|
else {
|
|
[super setValue:value forKeyPath:keyPath];
|
|
}
|
|
}
|
|
|
|
@end
|