Re: [RePost] NSBezierPath currentPoint
Re: [RePost] NSBezierPath currentPoint
- Subject: Re: [RePost] NSBezierPath currentPoint
- From: Jens Bauer <email@hidden>
- Date: Wed, 4 Feb 2004 06:37:13 +0100
Hi,
On Wednesday, Feb 4, 2004, at 04:13 Europe/Copenhagen, Andersen Studley
wrote:
To sum it up, my bezierPath doesn't seem to adhere to it's
currentPoint when adding lines or curves. The original message will
follow my abbreviated example. The docs state that drawing begins at
the currentPoint, which makes me wonder why I have to do :
//other stuff
[path moveToPoint:[path currentPoint]]; //WHY?
[path lineToPoint:myPoint];
[path moveToPoint:[path currentPoint]]; //WHY?
[path lineToPoint:myOtherPoint];
instead of :
[path lineToPoint:myPoint];
[path lineToPoint:myOtherPoint];
I think it's because the first one would be much faster.
I personally only do this:
loop
{
[path moveToPoint:...];
[path lineToPoint:...];
[path stroke];
[path removeAllPoints];
}
-That seems to be the fastest way for me.
Appending lines all the time will make rendering slower.
You can search the archive for information on it; I think John Randolph
answered the question a few years ago...
Love,
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.