• 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
Drawing smooth curve through control points using NSBezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Split view in a table
  • Next by Date: Re: Split view in a table
  • Previous by thread: Re: Split view in a table
  • Next by thread: Re: Drawing smooth curve through control points using NSBezierPath
  • Index(es):
    • Date
    • Thread