Drawing a tree with NSBezierPaths
Drawing a tree with NSBezierPaths
- Subject: Drawing a tree with NSBezierPaths
- From: Scott Ellsworth <email@hidden>
- Date: Tue, 13 Sep 2005 17:36:35 -0700
Hi, all.
I have a tree structure in memory, and I want to draw it on the
screen. Each branch gets a line segment, and each junction gets a dot.
I just got bitten by the 'paths connect only if they are drawn
consecutively, and only if the next segment starts where the last
ended' design.
Before I write some tree walking code to do a depth first search,
returning one BP for each walk down the tree, has someone already
solved this?
I did google on NSBezierPath, tree, depth-first, as well as reading
the docs and looking at the CocoaDev wiki.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden