mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 07:09:24 +00:00
customTableView now does not rely on windowController for observer lookup
This commit is contained in:
@@ -25,10 +25,12 @@
|
||||
|
||||
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath {
|
||||
if([keyPath hasPrefix:@"objectValue."]) {
|
||||
[self.window.windowController.document willChangeModelProperty];
|
||||
[self.observer willChangeModelProperty];
|
||||
[super setValue:value forKeyPath:keyPath];
|
||||
[self.observer didChangeModelProperty];
|
||||
}
|
||||
else {
|
||||
[super setValue:value forKeyPath:keyPath];
|
||||
[self.window.windowController.document didChangeModelProperty];
|
||||
}
|
||||
[super setValue:value forKeyPath:keyPath];
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user