I'm having some problems getting started with NSOutlineView. I have set it up in IB and have assigned the data source to my general controller object. I'm at the point of overriding these methods in my controller:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
- (id)outlineView

NSOutlineView *)outlineView child

int)index ofItem

id)item;
- (BOOL)outlineView

NSOutlineView *)outlineView isItemExpandable

id)item;
- (int)outlineView

NSOutlineView *)outlineView numberOfChildrenOfItem

id)item;
- (id)outlineView

NSOutlineView *)outlineView objectValueForTableColumn

NSTableColumn *)tableColumn byItem

id)item;
</font>[/code]
I want to have the outline view contain a list of 'folders' that can contain sub-folders as well as one type of custom object (call it customObject as it's not really important what it is). Sub-folders can have sub-folders and on and on. I can't figure out the best way to set up the data structures. Should I use an array containing other arrays and customObjects with each internal array containing arrays and customObjects? And then I'm not sure how to fit it into the above methods. I can't quite get a feel for how the first and fourth methods above relate to one another. I can probably figure out the second and third methods once I understand the data structure and the first and fourth methods.
Thanks for any help,
kman