Group inspector now correctly edits expires flag and search and auto type inheritance

This commit is contained in:
michael starke
2013-09-03 01:26:03 +02:00
parent de13be4db8
commit e7cdf352f8
6 changed files with 124 additions and 11 deletions

View File

@@ -75,10 +75,17 @@
if(self.group) {
[self.titleTextField bind:NSValueBinding toObject:self.group withKeyPath:@"name" options:nil];
[self.notesTextView bind:NSValueBinding toObject:self.group withKeyPath:@"notes" options:nil];
[self.expiresCheckButton bind:NSValueBinding toObject:self.group.timeInfo withKeyPath:@"expires" options:nil];
[self.autotypePopupButton bind:NSSelectedTagBinding toObject:self.group withKeyPath:@"isAutoTypeEnabled" options:nil];
[self.searchPopupButton bind:NSSelectedTagBinding toObject:self.group withKeyPath:@"isSearchEnabled" options:nil];
}
else {
[self.titleTextField unbind:NSValueBinding];
[self.notesTextView unbind:NSValueBinding];
[self.expiresCheckButton unbind:NSValueBinding];
[self.autotypePopupButton unbind:NSSelectedTagBinding];
[self.searchPopupButton unbind:NSSelectedTagBinding];
}
}