OutlineView with multiple roots.
OutlineView with multiple roots.
- Subject: OutlineView with multiple roots.
- From: "Sachin Tulla" <email@hidden>
- Date: Tue, 12 Dec 2006 10:01:05 +0530
- Thread-topic: OutlineView with multiple roots.
Hi,
I had multiple objects(roots) in an array. I could insert and delete the roots and corresponding child at run time, its in while loop, for each manupulation of the array, the
oulineview is reloaded.
- (id)outlineView:(NSOutlineView *)ov child:(int)index ofItem:(id)item {
// is the parent non-nil?
if (item)
return [item childAtIndex:index];
else
// Else return the root
return [array objectAtIndex:index];
}
so in this way the whole array is loaded for [outlineview reloadData]; at runtime. By this all the expanded roots in the outlineview are refreshed each time and all the roots
are closed. where Iam unable to select a child for a particular root since it is refreshing all the time. I want to load only one particular rootnode which is updated not the whole array.(manupulation is done in an dedicated thread which always recieves packets to insert/replaces/deletes and displays it in the oulineView), if it is single root I found some sample code, but for multiple roots if anyone have any idea regarding this please give me the way to solve the problem.
Thank you.
sachin kumar T.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden