Re: Programmatic OutlineView
Re: Programmatic OutlineView
- Subject: Re: Programmatic OutlineView
- From: Matt Covey <email@hidden>
- Date: Mon, 15 Apr 2002 20:46:37 -0700
Matt,
You need to use "setOutlineTableColumn:", as in:
NSOutlineView *ov = ...;
[ov setOutlineTableColumn: [[ov tableColumns] objectAtIndex: 0]];
++matt
>
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.
_______________________________________________
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.