Drawing smooth curve through control points using NSBezierPath
Drawing smooth curve through control points using NSBezierPath
- Subject: Drawing smooth curve through control points using NSBezierPath
- From: Rick Hoge <email@hidden>
- Date: Sat, 2 Apr 2005 09:45:54 -0500
I would like to allow users in a graphics application to draw a smooth
curve through a number of control points defined by clicking the mouse
in a view.
I am wondering whether there is any way to do this efficiently (i.e. an
easy way) using NSBezierPath? I have done a lot of stuff with freehand
drawing using NSBezierPaths but am not sure how to approach this
problem. None of the example code I saw on the Apple pages seemed to
do it this way, but perhaps I am missing something. This could also be
done using splines but if there is some easy way to do it with AppKit
I'm all for it :)
Thanks for any suggestions,
Rick
_______________________________________________
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