[Drawkit] NSBezierPath points?

Graham Cox graham.cox at bigpond.com
Sat Feb 13 21:01:07 PST 2010


On 14/02/2010, at 1:11 PM, Paul Reilly wrote:

> OK, I will give it a go.
> Will it NSLog the CGPoints for the path, as I draw the freehand curve?
> Or how can I access the path CGPoint elements?

No, it will draw the path as you drag the mouse. When you've finished, the resulting object will be a 'DKDrawablePath' which has a NSBezierPath property which you can get using [theObject path]; Standard Cocoa NSBezierPath methods will get you to the points themselves.

Possibly Drawkit is at a higher level than you're supposing - it implements a complete layered vector drawing environment. If you want to do lower-level things with the paths you draw there are various levels that you could work at, depending on what it is you really want to do.

--Graham




More information about the Drawkit mailing list