Hi, ALL,
I am developing an application and I need to create NSOutlineView. I need it to look like the List Control (not a Tree Control). I need the control to not to have the column header. I also need the control to have 2 columns as follows:
Second column will have a constant width (lets say 100 - this is not the actual width). It will be permanent for all rows in control.
First column (the leftmost one) will have a width of (view_width - width_of_second_column).
First column will contain the strings of the different width. The second column will contain the checkbox with the label
There will be no horizontal scrollbar visible - the strings will be short enough to fit in the column.
And as I said before - the control will not have a column header.
Is creating such control with such layout possible?
My understanding is that I can do something like this:
[m_OutlineView setColumnAutoresizingStyle:NSTableViewSequentialColumnAutoresizingStyle];
[column resizingMask:NSTableColumnAutoresizingMask];
[m_OutlineView sizeToFit];
but when I tried it - it didn't work.
My guess is that this is because the control does not have a visible header for columns.
Am I wrong?
Or I am doing something wrong with the code?
Thank you in advance.