Re: NSBezierPath containsPoint is buggy?
Re: NSBezierPath containsPoint is buggy?
- Subject: Re: NSBezierPath containsPoint is buggy?
- From: Dan Bernstein <email@hidden>
- Date: Thu, 9 Feb 2006 13:49:55 +0200
This bug has come up on this list several times. I have filed a report
on it in October:
rdar://problem/4293148 -[NSBezierPath containsPoint:] returns the
wrong value in certain cases
Then I tried to work around it by using CGPath. No luck. The bug is
present in CGPath as well. One possible workaround (which I haven't
tested thoroughly) is to create another path, identical in everything
to your original path except that you start at a different point (i.e.
if your original path is p0->p1->p2->p3, create the path
p1->p2->p3->p0), and test each point for being contained in either
path.
On 1/17/06, Brian O'Brien <email@hidden> wrote:
> I have written an application that draws shapes on the screen.
> The application then needs to know if a point is inside one of these
> shapes.
> However my log shows that there is a problem with the NSBezierPath
> containsPoint method.
_______________________________________________
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