The indentationMarkerFollowsCell is always reports one.
I also try to indent disclosure button by setting setIndentationPerLevel in
drawRow: rowIndex clipRect:clipRect method. It shows the button indented
but the problem arises while clicking on it. It doesn't receive click
properly.
When we
Did you try the levelForItem:, or frameOfCellAtColumn:row:, or both?
Did they both have the same results? More information on what you
have tried and what the results were would make it easier to help you.
You haven't turned off [NSOutlineView indentationMarkerFollowsCell],
have you? Is
Am 09.07.2008 um 13:09 schrieb Aman Alam:
I am using datasource that contain two types of object.
The first object (Heading) contains a flag. If it is YES then it act
as child of other main heading.
The second object(item) contains value to show which is always child
of main heading.
Is there a way to indent main headings in NSOutlineView as follows: -
Heading 1
Item
Item
Heading 2
Item
Heading 2.1
Item
Item
Heading 3
Item
I tried many ways to indent the hea
I tried the same code earlier. This will indent the text displaying in cell
but the disclosure button still at its old place.
In normal case, when there is child item in NSOutlineView then the button
gets indented. But in my case the button doesn't get indent.
The most likely solution, off the
The most likely solution, off the top of my head, would involve
subclassing the NSOutlineView and overriding some method to tell Cocoa
to indent some rows more than others.
Here is one possibility. I don't know that it works, but it might.
Try it and see.
// you would need to subclass N
Is there a way to indent main headings in NSOutlineView as follows: -
>Heading 1
Item
Item
>Heading 2
Item
>Heading 2.1
Item
Item
>Heading 3
Item
I tried many ways to indent