• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bug in [path containsPoint]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in [path containsPoint]?


  • Subject: Re: Bug in [path containsPoint]?
  • From: "Brian O'Brien" <email@hidden>
  • Date: Mon, 13 Jun 2005 16:10:11 -0600


On Jun 13, 2005, at 10:55 AM, Brian O'Brien wrote:


On Jun 13, 2005, at 10:21 AM, Nicko van Someren wrote:

On 13 Jun 2005, at 17:13, Brian O'Brien wrote:
On Jun 3, 2005, at 5:38 PM, John C. Randolph wrote:
Are you sending -closePath, or just adding a path segment back to the first point?
I am not calling -closePath
This is what I do.

            NSBezierPath *path = [NSBezierPath bezierPath];
            [path appendBezierPathWithPoints:ptArray count:m];

If you don't close the path then there can be edge cases which look like what you are seeing. Until you close the path the system takes what you have as being an open path with the start and end points asymptotically close together. Try putting [path closePath]; after the code you have and see if the problem goes away.



I have and it doesn't help. Perhaps this is resolved in Tiger.

Can someone try this please?


    Nicko



_______________________________________________ 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


_______________________________________________ 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
References: 
 >Bug in [path containsPoint]? (From: "Brian O'Brien" <email@hidden>)
 >Re: Bug in [path containsPoint]? (From: "John C. Randolph" <email@hidden>)
 >Re: Bug in [path containsPoint]? (From: "Brian O'Brien" <email@hidden>)
 >Re: Bug in [path containsPoint]? (From: Nicko van Someren <email@hidden>)
 >Re: Bug in [path containsPoint]? (From: "Brian O'Brien" <email@hidden>)

  • Prev by Date: Re: Cocoa-Java-based Universal Binary?
  • Next by Date: NSDocument: Connecting the menubar to objects?
  • Previous by thread: Re: Bug in [path containsPoint]?
  • Next by thread: bind_at_load??
  • Index(es):
    • Date
    • Thread