Basic (buggy) Tree handling

This commit is contained in:
michael starke
2013-02-15 02:51:01 +01:00
parent d8e28b75c1
commit 8ab272179e
9 changed files with 43 additions and 9 deletions

View File

@@ -7,13 +7,17 @@
//
#import "MPOutlineViewDelegate.h"
#import "KdbLib.h"
@implementation MPOutlineViewDelegate
- (NSView *)outlineView:(NSOutlineView *)outlineView viewForTableColumn:(NSTableColumn *)tableColumn item:(id)item {
NSTableCellView *view = [outlineView makeViewWithIdentifier:@"DataCell" owner:self];
[view.imageView setImage:[NSImage imageNamed:NSImageNameFolder]];
[view.textField setStringValue:@"Test"];
if([item isKindOfClass:[KdbGroup class]]) {
KdbGroup *group = item;
[view.textField setStringValue:[group name]];
}
return view;
}