NSBezierPath (Modifying Paths)
NSBezierPath (Modifying Paths)
- Subject: NSBezierPath (Modifying Paths)
- From: Joseph Crawford <email@hidden>
- Date: Wed, 4 Feb 2009 10:35:41 -0500
Hello Everyone,
I am working on something small just to learn with and I have been
trying to figure this out for a while. The end result that I am
looking for is this
Draw A straight line
click the line and drag to make that line curve
Now I have been able to get all of this to work aside from one thing.
If you draw a curve then go to draw another the first one is not
remembered.
Code: http://paste.lisp.org/display/74870
I know it is my call to removeAllPaths on line 59 of the code pasted
at the URL above.
I know that i need to use the elementsAtIndex: and
elementsAtIndex:index associatedPoints:points to modify the points
rather than remove them all
However what I do not know is where I would get this Index to use.
Any assistance would be appreciated.
Thanks,
Joseph Crawford
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden