Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath containsPoint is buggy?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.