Re: Anyone got a cleverer idea for a tree view protocol?

2008-08-27 Thread Markus Spoettl
On Aug 26, 2008, at 8:58 PM, Graham Cox wrote: 0,3,2,1 would mean from the root, take the zeroth subitem, then the third, then the 2nd, then the 1st to arrive at the node at that point. An empty list (0 length) addresses the root node itself. I'm not commenting on your idea, it's just

Re: Anyone got a cleverer idea for a tree view protocol?

2008-08-27 Thread Graham Cox
On 27 Aug 2008, at 4:36 pm, Markus Spoettl wrote: On Aug 26, 2008, at 8:58 PM, Graham Cox wrote: 0,3,2,1 would mean from the root, take the zeroth subitem, then the third, then the 2nd, then the 1st to arrive at the node at that point. An empty list (0 length) addresses the root node

Anyone got a cleverer idea for a tree view protocol?

2008-08-26 Thread Graham Cox
Hi all, Not directly a Cocoa question, so forgive me for the noise, but before I commit to the following design I wonder if anyone is able to suggest something cleverer/cleaner. This is the best I've come up with but it seems a bit clunky in some ways. I have a general purpose view class