Great thanks, now im trying to do my task with OutlineView, for that purpose i explore DragNDropOutlineView example. And now i confused with one problem. I populate OutlineView through [SRC]
- (NSArray *)childrenForItem
id)item {
if (item == nil) {
return [rootTreeNode childNodes];
} else {
return [item childNodes];
}
}
- (id)outlineView
NSOutlineView *)outlineView child
NSInteger)index ofItem
id)item {
// 'item' may potentially be nil for the root item.
NSArray *children = [self childrenForItem:item];
// This will return an NSTreeNode with our model object as the representedObject
return [children objectAtIndex:index];
}
[/SRC]
Top level showed pretty well, but with next i have EXC_BAD_ACCESS, and its really bad, its retuen NSTreeNode object with my DSimpleNodeData in representedObject, but no data there((
But it was inserted, im sure