customTableView now does not rely on windowController for observer lookup

This commit is contained in:
michael starke
2017-02-04 00:14:36 +01:00
parent 2e7e032007
commit 2d6582240d
5 changed files with 13 additions and 5 deletions

View File

@@ -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