Is there a way to get the x,y co-ordinates of all points of a NSBezierPath object?
If i have a NSBezierPath object , is there a way to get co-ordinates(x,y) of all the points drawn. I want to move a NSRect along the path. An NSBezierPath doesn't define exactly which points it draws in, but it does contain the points needed to define its pieces. You can use the elementAtIndex:associatedPoints: method to get the points for each vector element in the path. To get each point in the path you would have to iterate over all of the elements and get the associated points. For straight lines, this method will give you the endpoint, but if you keep track of the previous point you can