Programmatic OutlineView
Programmatic OutlineView
- Subject: Programmatic OutlineView
- From: Matthew Smith <email@hidden>
- Date: Tue, 16 Apr 2002 10:56:34 +1000
Hello again,
Sorry if you get this twice but I'm not sure the first message I sent
went through...
I'm attempting to create an NSOutlineView programmatically (I've been
told it is easier to use nibs but I have to do it this way...).
I've managed to create the NSOutlineView, add it to the NSScrollView and
display it in a window with the data in my data source, but as soon as
there is a parent-child relationship in the data I get the following
assertion failure:
Assertion failure in -[NSOutlineView _locationOfColumn:],
NSTableView.m:432
Invalid parameter not satisfying: (index >= 0) && (index <= numColumns)
I have only one column that is added using the call:
[m_table addTableColumn:m_column1];
Where m_table is my OutlineView and m_column1 is the column I m adding...
Does anyone have any clue how to fix this, or an example of a
programmatically created NSOutlineView?
Thanks a heap,
Matt Smith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.