How to limit expansion in NSOutlineView

  • When a user option-clicks the root of my tree, I only want to expand to the
    next-to-last level. I don't see how I can use the normal delegate methods
    for "should expand" because they don't know whether a single-level expansion
    or recursive expansion is happening. And even if they could, those nodes
    need to be expandable, ie have the triangle drawn, after the expansion is
    complete.

    Is there any way to do this? Or should I require that users just know better
    than to option-click the root node of a tree that might well have 10k items
    in it (or >100k in the most extreme case)?


    --
    Scott Ribe
    <scott_ribe...>
    http://www.killerbytes.com/
    (303) 722-0567 voice
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today