Fixed issue with notes field not being properly bound to Group notes

This commit is contained in:
michael starke
2013-08-01 19:40:30 +02:00
parent 115537c95b
commit 560d9ce941
11 changed files with 354 additions and 116 deletions

View File

@@ -12,6 +12,7 @@
#import "Kdb.h"
#import "Kdb4Node.h"
#import "Kdb4Group+Undo.h"
#import "HNHScrollView.h"
#import "HNHRoundedTextField.h"
@@ -75,7 +76,7 @@
- (void)_updateBindings {
if(self.group) {
[self.titleTextField bind:NSValueBinding toObject:self.group withKeyPath:@"nameUndoable" options:nil];
if([self.group respondsToSelector:@selector(notes:)]) {
if([self.group isKindOfClass:[Kdb4Group class]]) {
[self.notesTextView bind:NSValueBinding toObject:self.group withKeyPath:@"notesUndoable" options:nil];
}
else {