• 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
NSBezierPath - quadratic curve with one control point?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBezierPath - quadratic curve with one control point?


  • Subject: NSBezierPath - quadratic curve with one control point?
  • From: Jim Correia <email@hidden>
  • Date: Fri, 16 Dec 2005 20:25:09 -0500

CGContext has two functions for dealing with quadratic curves - one take two control points and the other only one.

/* Append a quadratic curve from the current point to `(x, y)', with
* control point `(cpx, cpy)'. */
CG_EXTERN void CGContextAddQuadCurveToPoint(CGContextRef c, float cpx, float cpy, float x, float y);

How do I replicate that with NSBezierPath? (I want to keep the path around, not just render it and toss it.) The only method I see wants two control points.

Thanks,
Jim

_______________________________________________
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: NSBezierPath - quadratic curve with one control point?
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Best way to implement performant Interprocess Communication
  • Next by Date: Re: socket spy
  • Previous by thread: Re: Best way to implement performant Interprocess Communication
  • Next by thread: Re: NSBezierPath - quadratic curve with one control point?
  • Index(es):
    • Date
    • Thread