Changed outline view to display the root node as a normal node and added a separate Group header

This commit is contained in:
michael starke
2013-06-26 21:32:32 +02:00
parent 17f2155aa4
commit 0df7ed4458
17 changed files with 195 additions and 89 deletions

View File

@@ -22,6 +22,7 @@
#import "Kdb3Node.h"
#import "KdbGroup+Undo.h"
#import "KdbEntry+Undo.h"
#import "NSMutableData+Base64.h"
#import "HNHGradientView.h"
@@ -299,8 +300,9 @@ enum {
Kdb4Entry *entry = (Kdb4Entry *)self.selectedEntry;
BinaryRef *binaryRef = entry.binaries[row];
[[view textField] bind:NSValueBinding toObject:binaryRef withKeyPath:@"key" options:nil];
// MPDocument *document = [[self windowController] document];
// [document binaryForRef:binaryRef];
MPDocument *document = [[self windowController] document];
Binary *binary = [document binaryForRef:binaryRef];
NSLog(@"%@", binary.data);
}
return view;
}