• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing a tree with NSBezierPaths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing a tree with NSBezierPaths


  • Subject: Re: Drawing a tree with NSBezierPaths
  • From: Scott Thompson <email@hidden>
  • Date: Wed, 14 Sep 2005 08:54:53 -0500


On Sep 13, 2005, at 7:36 PM, Scott Ellsworth wrote:

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.

I don't understand the problem that you've "got bitten" by. You would expect that line segments would join even if their endpoints do not coincide?


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


  • Follow-Ups:
    • Re: Drawing a tree with NSBezierPaths
      • From: Scott Ellsworth <email@hidden>
References: 
 >Drawing a tree with NSBezierPaths (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: Re: Cocoa for small applications
  • Next by Date: Re: null selector
  • Previous by thread: Drawing a tree with NSBezierPaths
  • Next by thread: Re: Drawing a tree with NSBezierPaths
  • Index(es):
    • Date
    • Thread