NSOutlineView sample?
NSOutlineView sample?
- Subject: NSOutlineView sample?
- From: Andreas Wolf <email@hidden>
- Date: Mon, 18 Jun 2001 11:03:52 -0700
Does anybody have sample code that implements the
NSOutlineViewDataSource Protocol?
I know how to do NSTableViews but from the description of NSOutlineView
I couldn't figure out how to implement the four required methods to make
NSOutlineViews
work. (honestly, I think the documentation of that protocol is confusing)
In particular I have an NSMutableArray of objects that contain other
objects and want to display
them hierarchically in an NSOutlineView.
What needs to be done in
- (id) outlineView:(NSOutlineView*) outlineView child:(int) index
ofItem:(id) item
- (id) outlineView:(NSOutlineView*) outlineView
objectValueForTableColumn:(NSTableColumn *) tableColumn byItem:(id) item
?
Any help greatly appreciated,
-Andreas